src/main/win32/SDL_win32_main.c
changeset 1361 19418e4422cb
parent 1358 c71e05b4dc2e
child 1379 c0a74f199ecf
     1.1 --- a/src/main/win32/SDL_win32_main.c	Fri Feb 10 07:29:08 2006 +0000
     1.2 +++ b/src/main/win32/SDL_win32_main.c	Thu Feb 16 10:11:48 2006 +0000
     1.3 @@ -220,27 +220,12 @@
     1.4  	atexit(cleanup_output);
     1.5  	atexit(SDL_Quit);
     1.6  
     1.7 -#ifndef DISABLE_VIDEO
     1.8 -#if 0
     1.9 -	/* Create and register our class *
    1.10 -	   DJM: If we do this here, the user nevers gets a chance to
    1.11 -	   putenv(SDL_WINDOWID).  This is already called later by
    1.12 -	   the (DIB|DX5)_CreateWindow function, so it should be
    1.13 -	   safe to comment it out here.
    1.14 -	if ( SDL_RegisterApp(appname, CS_BYTEALIGNCLIENT, 
    1.15 -	                     GetModuleHandle(NULL)) < 0 ) {
    1.16 -		ShowError("WinMain() error", SDL_GetError());
    1.17 -		exit(1);
    1.18 -	}*/
    1.19 -#else
    1.20  	/* Sam:
    1.21  	   We still need to pass in the application handle so that
    1.22  	   DirectInput will initialize properly when SDL_RegisterApp()
    1.23  	   is called later in the video initialization.
    1.24  	 */
    1.25  	SDL_SetModuleHandle(GetModuleHandle(NULL));
    1.26 -#endif /* 0 */
    1.27 -#endif /* !DISABLE_VIDEO */
    1.28  
    1.29  	/* Run the application main() code */
    1.30  	SDL_main(argc, argv);