comparison src/main/linux/SDL_Qtopia_main.cc @ 371:db0cc6034336

Added David Hedbor's Qtopia patches
author Sam Lantinga <slouken@libsdl.org>
date Sun, 19 May 2002 20:06:01 +0000
parents
children 11c8a7684f74
comparison
equal deleted inserted replaced
370:ba72f259bc88 371:db0cc6034336
1
2 /* Include the SDL main definition header */
3 #include "SDL_main.h"
4 #ifdef main
5 #undef main
6 #endif
7 #ifdef QWS
8 #include <qpe/qpeapplication.h>
9 #include <qapplication.h>
10 #endif
11
12 extern int SDL_main(int argc, char *argv[]);
13
14 int main(int argc, char *argv[])
15 {
16 #ifdef QWS
17 // This initializes the Qtopia application. It needs to be done here
18 // because it parses command line options.
19 QPEApplication *app = new QPEApplication(argc, argv);
20 QWidget dummy;
21 app->showMainWidget(&dummy);
22 #endif
23 return(SDL_main(argc, argv));
24 }