comparison src/main/linux/SDL_Qtopia_main.cc @ 379:11c8a7684f74

Date: Fri, 24 May 2002 10:32:00 -0700 From: David Hedbor <david@hedbor.org> Subject: more patches Ok, another thing I discovered when porting prboom to the Zaurus - mouse events weren't rotated when the screen was (i.e you got incorrect events there). This is now fixed. Also noticed that SDL_WarpMouse isn't handled correctly, but I haven't looked at fixing that yes.
author Sam Lantinga <slouken@libsdl.org>
date Tue, 28 May 2002 19:24:11 +0000
parents db0cc6034336
children d15bef937f00
comparison
equal deleted inserted replaced
378:6089cd59e3ca 379:11c8a7684f74
4 #ifdef main 4 #ifdef main
5 #undef main 5 #undef main
6 #endif 6 #endif
7 #ifdef QWS 7 #ifdef QWS
8 #include <qpe/qpeapplication.h> 8 #include <qpe/qpeapplication.h>
9 #include <qapplication.h>
10 #endif 9 #endif
11 10
12 extern int SDL_main(int argc, char *argv[]); 11 extern int SDL_main(int argc, char *argv[]);
13 12
14 int main(int argc, char *argv[]) 13 int main(int argc, char *argv[])
15 { 14 {
16 #ifdef QWS 15 #ifdef QWS
17 // This initializes the Qtopia application. It needs to be done here 16 // This initializes the Qtopia application. It needs to be done here
18 // because it parses command line options. 17 // because it parses command line options.
19 QPEApplication *app = new QPEApplication(argc, argv); 18 QPEApplication app(argc, argv);
20 QWidget dummy; 19 QWidget dummy;
21 app->showMainWidget(&dummy); 20 app.showMainWidget(&dummy);
22 #endif 21 #endif
23 return(SDL_main(argc, argv)); 22 return(SDL_main(argc, argv));
24 } 23 }