Mercurial > sdl-ios-xcode
comparison src/main/win32/SDL_main.c @ 15:ac67f6758d63
Don't try to register the app if video code is disabled
author | Sam Lantinga <slouken@lokigames.com> |
---|---|
date | Wed, 02 May 2001 19:21:00 +0000 |
parents | 74212992fb08 |
children | 13ee9f4834ea |
comparison
equal
deleted
inserted
replaced
14:c3e9d4a623c1 | 15:ac67f6758d63 |
---|---|
158 return(FALSE); | 158 return(FALSE); |
159 } | 159 } |
160 atexit(cleanup_output); | 160 atexit(cleanup_output); |
161 atexit(SDL_Quit); | 161 atexit(SDL_Quit); |
162 | 162 |
163 /* Create and register our class, then run main code */ | 163 #ifndef DISABLE_VIDEO |
164 /* Create and register our class */ | |
164 if ( SDL_RegisterApp(appname, CS_BYTEALIGNCLIENT, | 165 if ( SDL_RegisterApp(appname, CS_BYTEALIGNCLIENT, |
165 GetModuleHandle(NULL)) < 0 ) { | 166 GetModuleHandle(NULL)) < 0 ) { |
166 ShowError("WinMain() error", SDL_GetError()); | 167 ShowError("WinMain() error", SDL_GetError()); |
167 exit(1); | 168 exit(1); |
168 } | 169 } |
170 #endif /* !DISABLE_VIDEO */ | |
171 | |
172 /* Run the application main() code */ | |
169 SDL_main(argc, argv); | 173 SDL_main(argc, argv); |
170 | 174 |
171 /* Exit cleanly, calling atexit() functions */ | 175 /* Exit cleanly, calling atexit() functions */ |
172 exit(0); | 176 exit(0); |
173 } | 177 } |