diff src/video/wincommon/SDL_sysevents.c @ 149:0e66fd980014

Fixed compile errors and added call to SDL_SetModuleHandle() in WinMain()
author Sam Lantinga <slouken@libsdl.org>
date Thu, 09 Aug 2001 14:04:46 +0000
parents 29a638dc26db
children 0a26c92c2385
line wrap: on
line diff
--- a/src/video/wincommon/SDL_sysevents.c	Thu Aug 09 13:09:47 2001 +0000
+++ b/src/video/wincommon/SDL_sysevents.c	Thu Aug 09 14:04:46 2001 +0000
@@ -504,13 +504,13 @@
 }
 
 /* Allow the application handle to be stored and retrieved later */
-static HMODULE SDL_handle = NULL;
+static void *SDL_handle = NULL;
 
-void SDL_SetModuleHandle(HMODULE handle)
+void SDL_SetModuleHandle(void *handle)
 {
 	SDL_handle = handle;
 }
-HMODULE SDL_GetModuleHandle(void)
+void *SDL_GetModuleHandle(void)
 {
 	void *handle;
 
@@ -531,7 +531,7 @@
 const char *SDL_windowid = NULL;
 
 /* Register the class for this application -- exported for winmain.c */
-int SDL_RegisterApp(char *name, Uint32 style, HMODULE hInst)
+int SDL_RegisterApp(char *name, Uint32 style, void *hInst)
 {
 	static int initialized = 0;
 	WNDCLASS class;
@@ -571,7 +571,7 @@
 	class.lpszClassName	= name;
 #endif /* _WIN32_WCE */
 	class.hbrBackground	= NULL;
-	class.hInstance		= hInst ? hInst : GetModuleHandle(0);
+	class.hInstance		= hInst;
 	class.style		= style;
 #ifdef HAVE_OPENGL
 	class.style		|= CS_OWNDC;