Skip to content

Commit

Permalink
fix: win.center() on Windows
Browse files Browse the repository at this point in the history
Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com>
  • Loading branch information
trop[bot] and codebytere committed May 15, 2024
1 parent 574879f commit 7a993c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shell/browser/native_window_views.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1085,7 +1085,7 @@ void NativeWindowViews::Center() {
#else
HWND hwnd = GetAcceleratedWidget();
gfx::Size size = display::win::ScreenWin::DIPToScreenSize(hwnd, GetSize());
gfx::CenterAndSizeWindow(hwnd, hwnd, size);
gfx::CenterAndSizeWindow(nullptr, hwnd, size);
#endif
}

Expand Down

0 comments on commit 7a993c5

Please sign in to comment.