浏览代码

Examples: DX9: Fix WM_SIZE handling bug introduced in 031e152d2. (#6374)

ocornut 2 年之前
父节点
当前提交
c8579abb43
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      examples/example_win32_directx9/main.cpp

+ 1 - 0
examples/example_win32_directx9/main.cpp

@@ -99,6 +99,7 @@ int main(int, char**)
         {
             g_d3dpp.BackBufferWidth = g_ResizeWidth;
             g_d3dpp.BackBufferHeight = g_ResizeHeight;
+            g_ResizeWidth = g_ResizeHeight = 0;
             ResetDevice();
         }