Mercurial > sdl-ios-xcode
comparison src/video/qtopia/SDL_QPEApp.cc @ 1668:4da1ee79c9af SDL-1.3
more tweaking indent options
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Mon, 29 May 2006 04:04:35 +0000 |
parents | 782fd950bd46 |
children |
comparison
equal
deleted
inserted
replaced
1667:1fddae038bc8 | 1668:4da1ee79c9af |
---|---|
32 /* Flag to tell whether or not the Be application is active or not */ | 32 /* Flag to tell whether or not the Be application is active or not */ |
33 int SDL_QPEAppActive = 0; | 33 int SDL_QPEAppActive = 0; |
34 static QPEApplication *app; | 34 static QPEApplication *app; |
35 | 35 |
36 int | 36 int |
37 SDL_InitQPEApp () | 37 SDL_InitQPEApp() |
38 { | 38 { |
39 if (SDL_QPEAppActive <= 0) { | 39 if (SDL_QPEAppActive <= 0) { |
40 if (!qApp) { | 40 if (!qApp) { |
41 int argc = 1; | 41 int argc = 1; |
42 char *argv[] = { {"SDLApp"} }; | 42 char *argv[] = { {"SDLApp"} }; |
43 app = new QPEApplication (argc, argv); | 43 app = new QPEApplication(argc, argv); |
44 QWidget dummy; | 44 QWidget dummy; |
45 app->showMainWidget (&dummy); | 45 app->showMainWidget(&dummy); |
46 } else { | 46 } else { |
47 app = (QPEApplication *) qApp; | 47 app = (QPEApplication *) qApp; |
48 } | 48 } |
49 SDL_QPEAppActive++; | 49 SDL_QPEAppActive++; |
50 } | 50 } |
51 return 0; | 51 return 0; |
52 } | 52 } |
53 | 53 |
54 /* Quit the QPE Application, if there's nothing left to do */ | 54 /* Quit the QPE Application, if there's nothing left to do */ |
55 void | 55 void |
56 SDL_QuitQPEApp (void) | 56 SDL_QuitQPEApp(void) |
57 { | 57 { |
58 /* Decrement the application reference count */ | 58 /* Decrement the application reference count */ |
59 SDL_QPEAppActive--; | 59 SDL_QPEAppActive--; |
60 /* If the reference count reached zero, clean up the app */ | 60 /* If the reference count reached zero, clean up the app */ |
61 if (SDL_QPEAppActive == 0 && app) { | 61 if (SDL_QPEAppActive == 0 && app) { |