comparison src/main/win32/SDL_win32_main.c @ 1361:19418e4422cb

New configure-based build system. Still work in progress, but much improved
author Sam Lantinga <slouken@libsdl.org>
date Thu, 16 Feb 2006 10:11:48 +0000
parents c71e05b4dc2e
children c0a74f199ecf
comparison
equal deleted inserted replaced
1360:70a9cfb4cf1b 1361:19418e4422cb
218 return(FALSE); 218 return(FALSE);
219 } 219 }
220 atexit(cleanup_output); 220 atexit(cleanup_output);
221 atexit(SDL_Quit); 221 atexit(SDL_Quit);
222 222
223 #ifndef DISABLE_VIDEO
224 #if 0
225 /* Create and register our class *
226 DJM: If we do this here, the user nevers gets a chance to
227 putenv(SDL_WINDOWID). This is already called later by
228 the (DIB|DX5)_CreateWindow function, so it should be
229 safe to comment it out here.
230 if ( SDL_RegisterApp(appname, CS_BYTEALIGNCLIENT,
231 GetModuleHandle(NULL)) < 0 ) {
232 ShowError("WinMain() error", SDL_GetError());
233 exit(1);
234 }*/
235 #else
236 /* Sam: 223 /* Sam:
237 We still need to pass in the application handle so that 224 We still need to pass in the application handle so that
238 DirectInput will initialize properly when SDL_RegisterApp() 225 DirectInput will initialize properly when SDL_RegisterApp()
239 is called later in the video initialization. 226 is called later in the video initialization.
240 */ 227 */
241 SDL_SetModuleHandle(GetModuleHandle(NULL)); 228 SDL_SetModuleHandle(GetModuleHandle(NULL));
242 #endif /* 0 */
243 #endif /* !DISABLE_VIDEO */
244 229
245 /* Run the application main() code */ 230 /* Run the application main() code */
246 SDL_main(argc, argv); 231 SDL_main(argc, argv);
247 232
248 /* Exit cleanly, calling atexit() functions */ 233 /* Exit cleanly, calling atexit() functions */