Date: Fri, 02 Jan 2009 23:22:39 +0100
authorSam Lantinga <slouken@libsdl.org>
Fri, 02 Jan 2009 23:47:16 +0000
changeset 2968efe4d0ce2e97
parent 2967 e4a469d6ddab
child 2969 1ee69e7e7cea
Date: Fri, 02 Jan 2009 23:22:39 +0100
From: Couriersud
Subject: SDL1.3 Win32 Resize bug

the attached diff fixes a bug where width and height were exchanged when
resizing a window.
src/video/win32/SDL_win32window.c
     1.1 --- a/src/video/win32/SDL_win32window.c	Fri Jan 02 17:39:48 2009 +0000
     1.2 +++ b/src/video/win32/SDL_win32window.c	Fri Jan 02 23:47:16 2009 +0000
     1.3 @@ -377,7 +377,7 @@
     1.4      w = (rect.right - rect.left);
     1.5      h = (rect.bottom - rect.top);
     1.6  
     1.7 -    SetWindowPos(hwnd, top, 0, 0, h, w, (SWP_NOCOPYBITS | SWP_NOMOVE));
     1.8 +    SetWindowPos(hwnd, top, 0, 0, w, h, (SWP_NOCOPYBITS | SWP_NOMOVE));
     1.9  }
    1.10  
    1.11  void