Mercurial > sdl-ios-xcode
comparison src/main/win32/SDL_main.c @ 145:29a638dc26db
Applied David MacCormack's patch to fix SDL_WINDOWID on Windows,
and added a function to cache the application handle so DirectInput
still works properly.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Thu, 09 Aug 2001 12:21:32 +0000 |
parents | 9ef74357a5fb |
children | 0e66fd980014 |
comparison
equal
deleted
inserted
replaced
144:1cfa4282f2eb | 145:29a638dc26db |
---|---|
197 } | 197 } |
198 atexit(cleanup_output); | 198 atexit(cleanup_output); |
199 atexit(SDL_Quit); | 199 atexit(SDL_Quit); |
200 | 200 |
201 #ifndef DISABLE_VIDEO | 201 #ifndef DISABLE_VIDEO |
202 /* Create and register our class */ | 202 /* Create and register our class * |
203 DJM: If we do this here, the user nevers gets a chance to | |
204 putenv(SDL_WINDOWID). This is already called later by | |
205 the (DIB|DX5)_CreateWindow function, so it should be | |
206 safe to comment it out here. | |
203 if ( SDL_RegisterApp(appname, CS_BYTEALIGNCLIENT, | 207 if ( SDL_RegisterApp(appname, CS_BYTEALIGNCLIENT, |
204 GetModuleHandle(NULL)) < 0 ) { | 208 GetModuleHandle(NULL)) < 0 ) { |
205 ShowError("WinMain() error", SDL_GetError()); | 209 ShowError("WinMain() error", SDL_GetError()); |
206 exit(1); | 210 exit(1); |
207 } | 211 }*/ |
208 #endif /* !DISABLE_VIDEO */ | 212 #endif /* !DISABLE_VIDEO */ |
209 | 213 |
210 /* Run the application main() code */ | 214 /* Run the application main() code */ |
211 SDL_main(argc, argv); | 215 SDL_main(argc, argv); |
212 | 216 |