Commit cc0b9d56 authored by Sam Lantinga's avatar Sam Lantinga

Fixed bug #725

Don't let windows reposition the fullscreen window.

--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%403921
parent f4571bcb
......@@ -588,6 +588,22 @@ LRESULT CALLBACK WinMessage(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
return(0);
#endif /* WM_GETMINMAXINFO */
case WM_WINDOWPOSCHANGING: {
WINDOWPOS *windowpos = (WINDOWPOS*)lParam;
/* When menu is at the side or top, Windows likes
to try to reposition the fullscreen window when
changing video modes.
*/
if ( !SDL_resizing &&
SDL_PublicSurface &&
(SDL_PublicSurface->flags & SDL_FULLSCREEN) ) {
windowpos->x = 0;
windowpos->y = 0;
}
}
return(0);
case WM_WINDOWPOSCHANGED: {
SDL_VideoDevice *this = current_video;
int w, h;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment