equal
deleted
inserted
replaced
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 } |