mirror of
https://github.com/electron/electron.git
synced 2026-01-08 23:18:06 -05:00
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user