diff src/video/windib/SDL_dibvideo.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 8039a5b760b9
line wrap: on
line diff
--- a/src/video/windib/SDL_dibvideo.c	Thu Aug 09 06:14:06 2001 +0000
+++ b/src/video/windib/SDL_dibvideo.c	Thu Aug 09 12:21:32 2001 +0000
@@ -574,7 +574,10 @@
 		if (IsZoomed(SDL_Window)) style |= WS_MAXIMIZE;
 #endif
 	}
-	SetWindowLong(SDL_Window, GWL_STYLE, style);
+
+   /* DJM: Don't piss of anyone who has setup his own window */
+   if (!SDL_windowid)
+	   SetWindowLong(SDL_Window, GWL_STYLE, style);
 
 	/* Delete the old bitmap if necessary */
 	if ( screen_bmp != NULL ) {