aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--demos/cube.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/demos/cube.c b/demos/cube.c
index a62a7e8a..c6d7d79c 100644
--- a/demos/cube.c
+++ b/demos/cube.c
@@ -1993,7 +1993,7 @@ LRESULT CALLBACK WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam) {
// with width=0 and height=0.
if (wParam != SIZE_MINIMIZED) {
demo.width = lParam & 0xffff;
- demo.height = lParam & 0xffff0000 >> 16;
+ demo.height = (lParam & 0xffff0000) >> 16;
demo_resize(&demo);
}
break;