diff options
Diffstat (limited to 'views/widget/widget_win.cc')
-rw-r--r-- | views/widget/widget_win.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/views/widget/widget_win.cc b/views/widget/widget_win.cc index a3dc3ce..e0edee8 100644 --- a/views/widget/widget_win.cc +++ b/views/widget/widget_win.cc @@ -144,8 +144,8 @@ void WidgetWin::MoveAbove(Widget* other) { bounds.width(), bounds.height(), SWP_NOACTIVATE); } -void WidgetWin::SetShape(gfx::NativeRegion region) { - SetWindowRgn(region, TRUE); +void WidgetWin::SetShape(const gfx::Path& shape) { + SetWindowRgn(shape.CreateHRGN(), TRUE); } void WidgetWin::Close() { |