mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-14 21:59:17 +00:00
GUI: Fix center layout in HiDPI
This commit is contained in:
parent
003f4a4499
commit
e92c783c2c
@ -276,10 +276,10 @@ void ThemeLayoutMain::reflowLayout(Widget *widgetChain) {
|
||||
_h = _children[0]->getHeight();
|
||||
|
||||
if (_y == -1)
|
||||
_y = (g_gui.getBaseHeight() >> 1) - (_h >> 1);
|
||||
_y = (g_system->getOverlayHeight() >> 1) - (_h >> 1);
|
||||
|
||||
if (_x == -1)
|
||||
_x = (g_gui.getBaseWidth() >> 1) - (_w >> 1);
|
||||
_x = (g_system->getOverlayWidth() >> 1) - (_w >> 1);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user