diff options
author | robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-11-21 14:24:16 +0000 |
---|---|---|
committer | robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-11-21 14:24:16 +0000 |
commit | a4662865e37a2ca95b5e3379072f6a274acc8ac8 (patch) | |
tree | dd09a0539c780850e5897df268dfca073e9f2d32 /src/views/win/SkOSWindow_win.cpp | |
parent | bcd431e1778001990c4d877929b14959dc96a0d3 (diff) |
More Windows 64b compilation warning fixes
https://codereview.chromium.org/47513017/
git-svn-id: http://skia.googlecode.com/svn/trunk@12337 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/views/win/SkOSWindow_win.cpp')
-rw-r--r-- | src/views/win/SkOSWindow_win.cpp | 7 |
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); |