Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
slouken committed Jan 2, 2009
1 parent d76aa76 commit 708c1e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/video/win32/SDL_win32window.c
Expand Up @@ -377,7 +377,7 @@ WIN_SetWindowSize(_THIS, SDL_Window * window)
w = (rect.right - rect.left);
h = (rect.bottom - rect.top);

SetWindowPos(hwnd, top, 0, 0, h, w, (SWP_NOCOPYBITS | SWP_NOMOVE));
SetWindowPos(hwnd, top, 0, 0, w, h, (SWP_NOCOPYBITS | SWP_NOMOVE));
}

void
Expand Down

0 comments on commit 708c1e4

Please sign in to comment.