summaryrefslogtreecommitdiffstats
path: root/views/controls/hwnd_view.cc
diff options
context:
space:
mode:
Diffstat (limited to 'views/controls/hwnd_view.cc')
-rw-r--r--views/controls/hwnd_view.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/views/controls/hwnd_view.cc b/views/controls/hwnd_view.cc
index 677e60a..fdf4042 100644
--- a/views/controls/hwnd_view.cc
+++ b/views/controls/hwnd_view.cc
@@ -110,9 +110,10 @@ void HWNDView::ShowWidget(int x, int y, int w, int h) {
if (fast_resize()) {
// In a fast resize, we move the window and clip it with SetWindowRgn.
- CRect rect;
- GetWindowRect(native_view(), &rect);
- ::SetWindowPos(native_view(), 0, x, y, rect.Width(), rect.Height(),
+ RECT win_rect;
+ GetWindowRect(native_view(), &win_rect);
+ gfx::Rect rect(win_rect);
+ ::SetWindowPos(native_view(), 0, x, y, rect.width(), rect.height(),
swp_flags);
HRGN clip_region = CreateRectRgn(0, 0, w, h);