diff options
| author | Ian Elliott <ian@LunarG.com> | 2015-10-21 15:14:07 -0600 |
|---|---|---|
| committer | Ian Elliott <ian@lunarg.com> | 2015-10-27 10:35:56 -0600 |
| commit | 5ef45e9842856e8de3d6a214612ff68a8ff05fc7 (patch) | |
| tree | ae42ec7423fdab222bc464b894829570a08a86f7 | |
| parent | 302a005f2e967b7bc1fb1485ed0e81d77766a4d6 (diff) | |
| download | usermoji-5ef45e9842856e8de3d6a214612ff68a8ff05fc7.tar.xz | |
tri/cube: Add WM_SIZE to Win32 event handler to resize a window.
| -rw-r--r-- | demos/cube.c | 3 | ||||
| -rw-r--r-- | demos/tri.c | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/demos/cube.c b/demos/cube.c index 6637bce8..b1c4c6f1 100644 --- a/demos/cube.c +++ b/demos/cube.c @@ -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; } diff --git a/demos/tri.c b/demos/tri.c index fa995490..9b512aef 100644 --- a/demos/tri.c +++ b/demos/tri.c @@ -1569,6 +1569,9 @@ LRESULT CALLBACK WndProc(HWND hWnd, demo_run(&demo); break; } + case WM_SIZE: + demo_resize(&demo); + break; default: break; } |
