summaryrefslogtreecommitdiffstats
path: root/views
diff options
context:
space:
mode:
Diffstat (limited to 'views')
-rw-r--r--views/controls/native/native_view_host_win.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/views/controls/native/native_view_host_win.cc b/views/controls/native/native_view_host_win.cc
index 3c05e2a..4761c2e 100644
--- a/views/controls/native/native_view_host_win.cc
+++ b/views/controls/native/native_view_host_win.cc
@@ -94,7 +94,7 @@ void NativeViewHostWin::InstallClip(int x, int y, int w, int h) {
HRGN clip_region = CreateRectRgn(x, y, x + w, y + h);
// NOTE: SetWindowRgn owns the region (as well as the deleting the
// current region), as such we don't delete the old region.
- SetWindowRgn(host_->native_view(), clip_region, FALSE);
+ SetWindowRgn(host_->native_view(), clip_region, TRUE);
installed_clip_ = true;
}
@@ -103,7 +103,7 @@ bool NativeViewHostWin::HasInstalledClip() {
}
void NativeViewHostWin::UninstallClip() {
- SetWindowRgn(host_->native_view(), 0, FALSE);
+ SetWindowRgn(host_->native_view(), 0, TRUE);
installed_clip_ = false;
}