comparison 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
comparison
equal deleted inserted replaced
144:1cfa4282f2eb 145:29a638dc26db
572 } 572 }
573 #ifndef _WIN32_WCE 573 #ifndef _WIN32_WCE
574 if (IsZoomed(SDL_Window)) style |= WS_MAXIMIZE; 574 if (IsZoomed(SDL_Window)) style |= WS_MAXIMIZE;
575 #endif 575 #endif
576 } 576 }
577 SetWindowLong(SDL_Window, GWL_STYLE, style); 577
578 /* DJM: Don't piss of anyone who has setup his own window */
579 if (!SDL_windowid)
580 SetWindowLong(SDL_Window, GWL_STYLE, style);
578 581
579 /* Delete the old bitmap if necessary */ 582 /* Delete the old bitmap if necessary */
580 if ( screen_bmp != NULL ) { 583 if ( screen_bmp != NULL ) {
581 DeleteObject(screen_bmp); 584 DeleteObject(screen_bmp);
582 } 585 }