diff 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
line wrap: on
line diff
--- a/src/main/linux/SDL_Qtopia_main.cc	Mon May 20 18:36:48 2002 +0000
+++ b/src/main/linux/SDL_Qtopia_main.cc	Tue May 28 19:24:11 2002 +0000
@@ -6,7 +6,6 @@
 #endif
 #ifdef QWS
 #include <qpe/qpeapplication.h>
-#include <qapplication.h>
 #endif
 
 extern int SDL_main(int argc, char *argv[]);
@@ -16,9 +15,9 @@
 #ifdef QWS
   // This initializes the Qtopia application. It needs to be done here
   // because it parses command line options.
-  QPEApplication *app = new QPEApplication(argc, argv);
+  QPEApplication app(argc, argv);
   QWidget dummy;
-  app->showMainWidget(&dummy);
+  app.showMainWidget(&dummy);
 #endif
   return(SDL_main(argc, argv));
 }