Mercurial > sdl-ios-xcode
diff src/video/qtopia/SDL_QPEApp.cc @ 1662:782fd950bd46 SDL-1.3
Revamp of the video system in progress - adding support for multiple displays, multiple windows, and a full video mode selection API.
WARNING: None of the video drivers have been updated for the new API yet! The API is still under design and very fluid.
The code is now run through a consistent indent format:
indent -i4 -nut -nsc -br -ce
The headers are being converted to automatically generate doxygen documentation.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sun, 28 May 2006 13:04:16 +0000 |
parents | 376665398b25 |
children | 4da1ee79c9af |
line wrap: on
line diff
--- a/src/video/qtopia/SDL_QPEApp.cc Sun May 21 17:27:13 2006 +0000 +++ b/src/video/qtopia/SDL_QPEApp.cc Sun May 28 13:04:16 2006 +0000 @@ -33,31 +33,36 @@ int SDL_QPEAppActive = 0; static QPEApplication *app; -int SDL_InitQPEApp() { - if(SDL_QPEAppActive <= 0) { - if(!qApp) { - int argc = 1; - char *argv[] = { { "SDLApp" } }; - app = new QPEApplication(argc, argv); - QWidget dummy; - app->showMainWidget(&dummy); - } else { - app = (QPEApplication*)qApp; +int +SDL_InitQPEApp () +{ + if (SDL_QPEAppActive <= 0) { + if (!qApp) { + int argc = 1; + char *argv[] = { {"SDLApp"} }; + app = new QPEApplication (argc, argv); + QWidget dummy; + app->showMainWidget (&dummy); + } else { + app = (QPEApplication *) qApp; + } + SDL_QPEAppActive++; } - SDL_QPEAppActive++; - } - return 0; + return 0; } /* Quit the QPE Application, if there's nothing left to do */ -void SDL_QuitQPEApp(void) +void +SDL_QuitQPEApp (void) { - /* Decrement the application reference count */ - SDL_QPEAppActive--; - /* If the reference count reached zero, clean up the app */ - if ( SDL_QPEAppActive == 0 && app) { - delete app; - app = 0; - qApp = 0; - } + /* Decrement the application reference count */ + SDL_QPEAppActive--; + /* If the reference count reached zero, clean up the app */ + if (SDL_QPEAppActive == 0 && app) { + delete app; + app = 0; + qApp = 0; + } } + +/* vi: set ts=4 sw=4 expandtab: */