fix: win.center()
on Windows (#42196)
fix: win.center() on Windows Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com> Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com>
This commit is contained in:
parent
574879fa40
commit
0f13974e90
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue