fix: win.center() on Windows (#42195)

fix: win.center() on Windows
This commit is contained in:
Shelley Vohr
2024-05-15 19:36:24 +02:00
committed by GitHub
parent 125bd6aa2b
commit a54afabe04

View File

@@ -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
}