view src/main/linux/SDL_Qtopia_main.cc @ 428:1338c24e30cb

Date: Fri, 12 Jul 2002 11:25:32 GMT+1 From: Patrice Mandin <pmandin@caramail.com> Subject: [SDL][PATCH] Audio for Atari, and XFree86 compilation I corrected a little bug in the Atari audio driver in SDL. I also added the patch for xfree86 detection in configure.in
author Sam Lantinga <slouken@libsdl.org>
date Mon, 29 Jul 2002 23:20:16 +0000
parents d15bef937f00
children 969fbd4dcd4e
line wrap: on
line source


/* Include the SDL main definition header */
#include "SDL_main.h"
#ifdef main
#undef main
#endif
#ifdef QWS
#include <qpe/qpeapplication.h>
#endif

extern int SDL_main(int argc, char *argv[]);

int main(int argc, char *argv[])
{
#ifdef QWS
  // This initializes the Qtopia application. It needs to be done here
  // because it parses command line options.
  QPEApplication app(argc, argv);
  QWidget dummy;
  app.showMainWidget(&dummy);
#endif
  // Exit here because if return is used, the application
  // doesn't seem to quit correctly.
  exit(SDL_main(argc, argv));
}