src/main/linux/SDL_Qtopia_main.cc
author Sam Lantinga <slouken@libsdl.org>
Mon, 10 Jun 2002 20:21:55 +0000
changeset 394 d15bef937f00
parent 379 11c8a7684f74
child 567 969fbd4dcd4e
permissions -rw-r--r--
*** empty log message ***


/* 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));
}