Mercurial > sdl-ios-xcode
diff 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 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/main/linux/SDL_Qtopia_main.cc Sun May 19 20:06:01 2002 +0000 @@ -0,0 +1,24 @@ + +/* Include the SDL main definition header */ +#include "SDL_main.h" +#ifdef main +#undef main +#endif +#ifdef QWS +#include <qpe/qpeapplication.h> +#include <qapplication.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 = new QPEApplication(argc, argv); + QWidget dummy; + app->showMainWidget(&dummy); +#endif + return(SDL_main(argc, argv)); +}