aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTony Barbour <tony@LunarG.com>2016-08-10 13:39:36 -0600
committerTony Barbour <tony@LunarG.com>2016-08-10 13:39:36 -0600
commitb32372021aa03371dd54c75147ef6a3fe717e02b (patch)
tree313971545d30b363040e468844a4145d13ba0b50
parentff9b0b539e5617378de5e5fc04e727f89bfb0e1d (diff)
downloadusermoji-b32372021aa03371dd54c75147ef6a3fe717e02b.tar.xz
demos: Fix operator precedence problem with window width
Change-Id: Ief0b260528a6eb38788f88ec8a463307522849e8
-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;