FS#160 - Windows size should not be reset to 0 when it is minimized

git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1538 4e206d99-4929-0410-ac5d-dfc041789085
This commit is contained in:
LaurentGom 2010-07-24 10:58:25 +00:00
parent 42615a30d9
commit 68cdbd31cc

View File

@ -440,6 +440,9 @@ void WindowImplWin32::ProcessEvent(UINT message, WPARAM wParam, LPARAM lParam)
// Resize event // Resize event
case WM_SIZE : case WM_SIZE :
{
// Ignore size events triggered by a minimize (size == 0 in this case)
if (wParam != SIZE_MINIMIZED)
{ {
// Update window size // Update window size
RECT rectangle; RECT rectangle;
@ -454,6 +457,7 @@ void WindowImplWin32::ProcessEvent(UINT message, WPARAM wParam, LPARAM lParam)
PushEvent(event); PushEvent(event);
break; break;
} }
}
// Gain focus event // Gain focus event
case WM_SETFOCUS : case WM_SETFOCUS :