aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/views/win/SkOSWindow_win.cpp
diff options
context:
space:
mode:
authorGravatar robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-11-21 14:24:16 +0000
committerGravatar robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-11-21 14:24:16 +0000
commita4662865e37a2ca95b5e3379072f6a274acc8ac8 (patch)
treedd09a0539c780850e5897df268dfca073e9f2d32 /src/views/win/SkOSWindow_win.cpp
parentbcd431e1778001990c4d877929b14959dc96a0d3 (diff)
More Windows 64b compilation warning fixes
Diffstat (limited to 'src/views/win/SkOSWindow_win.cpp')
-rw-r--r--src/views/win/SkOSWindow_win.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/views/win/SkOSWindow_win.cpp b/src/views/win/SkOSWindow_win.cpp
index 6bedd2dd8e..7549ea21da 100644
--- a/src/views/win/SkOSWindow_win.cpp
+++ b/src/views/win/SkOSWindow_win.cpp
@@ -130,9 +130,12 @@ bool SkOSWindow::wndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
this->handleChar(SkUTF8_ToUnichar((char*)&wParam));
return true;
} break;
- case WM_SIZE:
- this->resize(lParam & 0xFFFF, lParam >> 16);
+ case WM_SIZE: {
+ INT width = LOWORD(lParam);
+ INT height = HIWORD(lParam);
+ this->resize(width, height);
break;
+ }
case WM_PAINT: {
PAINTSTRUCT ps;
HDC hdc = BeginPaint(hWnd, &ps);