tri/cube: Add WM_SIZE to Win32 event handler to resize a window.
authorIan Elliott <ian@LunarG.com>
Wed, 21 Oct 2015 21:14:07 +0000 (15:14 -0600)
committerIan Elliott <ian@lunarg.com>
Tue, 27 Oct 2015 16:35:56 +0000 (10:35 -0600)
demos/cube.c
demos/tri.c

index 6637bce85d55ed6b83b53330864835ba599084a3..b1c4c6f13aa1f18f2afed0a313c9d4812c4bbc8c 100644 (file)
@@ -1944,6 +1944,9 @@ LRESULT CALLBACK WndProc(HWND hWnd,
     case WM_PAINT:
         demo_run(&demo);
         break;
+    case WM_SIZE:
+        demo_resize(&demo);
+        break;
     default:
         break;
     }
index fa99549031aef3961c67e926c249dd2e4ec88193..9b512aefbdbaf0acf4988a111ce3b8bdb07bd1c6 100644 (file)
@@ -1569,6 +1569,9 @@ LRESULT CALLBACK WndProc(HWND hWnd,
             demo_run(&demo);
             break;
         }
+    case WM_SIZE:
+        demo_resize(&demo);
+        break;
     default:
         break;
     }