Index: src/views/win/SkOSWindow_win.cpp |
=================================================================== |
--- src/views/win/SkOSWindow_win.cpp (revision 12322) |
+++ src/views/win/SkOSWindow_win.cpp (working copy) |
@@ -130,9 +130,12 @@ |
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); |