src/video/wincommon/SDL_sysevents.c
changeset 149 0e66fd980014
parent 145 29a638dc26db
child 162 0a26c92c2385
     1.1 --- a/src/video/wincommon/SDL_sysevents.c	Thu Aug 09 13:09:47 2001 +0000
     1.2 +++ b/src/video/wincommon/SDL_sysevents.c	Thu Aug 09 14:04:46 2001 +0000
     1.3 @@ -504,13 +504,13 @@
     1.4  }
     1.5  
     1.6  /* Allow the application handle to be stored and retrieved later */
     1.7 -static HMODULE SDL_handle = NULL;
     1.8 +static void *SDL_handle = NULL;
     1.9  
    1.10 -void SDL_SetModuleHandle(HMODULE handle)
    1.11 +void SDL_SetModuleHandle(void *handle)
    1.12  {
    1.13  	SDL_handle = handle;
    1.14  }
    1.15 -HMODULE SDL_GetModuleHandle(void)
    1.16 +void *SDL_GetModuleHandle(void)
    1.17  {
    1.18  	void *handle;
    1.19  
    1.20 @@ -531,7 +531,7 @@
    1.21  const char *SDL_windowid = NULL;
    1.22  
    1.23  /* Register the class for this application -- exported for winmain.c */
    1.24 -int SDL_RegisterApp(char *name, Uint32 style, HMODULE hInst)
    1.25 +int SDL_RegisterApp(char *name, Uint32 style, void *hInst)
    1.26  {
    1.27  	static int initialized = 0;
    1.28  	WNDCLASS class;
    1.29 @@ -571,7 +571,7 @@
    1.30  	class.lpszClassName	= name;
    1.31  #endif /* _WIN32_WCE */
    1.32  	class.hbrBackground	= NULL;
    1.33 -	class.hInstance		= hInst ? hInst : GetModuleHandle(0);
    1.34 +	class.hInstance		= hInst;
    1.35  	class.style		= style;
    1.36  #ifdef HAVE_OPENGL
    1.37  	class.style		|= CS_OWNDC;