From 377c1f2661d79548b6c10ef6b803964c32471d31 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Fri, 8 Jan 2016 04:52:49 +0100 Subject: [PATCH] N/A --- gfx/common/win32_common.cpp | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/gfx/common/win32_common.cpp b/gfx/common/win32_common.cpp index 3a4822b99c..3737d18aaf 100644 --- a/gfx/common/win32_common.cpp +++ b/gfx/common/win32_common.cpp @@ -229,13 +229,18 @@ LRESULT CALLBACK WndProcD3D(HWND hwnd, UINT message, { case WM_SIZE: /* Do not send resize message if we minimize. */ - g_resize_width = LOWORD(lparam); - g_resize_height = HIWORD(lparam); - g_resized = true; + if (wparam != SIZE_MAXHIDE && wparam != SIZE_MINIMIZED) + { + g_resize_width = LOWORD(lparam); + g_resize_height = HIWORD(lparam); + g_resized = true; - if (g_resize_width && g_resize_height) - if (gfx_ctx_set_resize(g_resize_width, g_resize_height)) - d3d_restore(curD3D); +#if 0 + if (g_resize_width && g_resize_height) + if (gfx_ctx_set_resize(g_resize_width, g_resize_height)) + d3d_restore(curD3D); +#endif + } return 0; case WM_SYSCOMMAND: case WM_CHAR: