GUI: Fix center layout in HiDPI

This commit is contained in:
Eugene Sandulenko 2020-11-07 18:32:33 +01:00
parent 003f4a4499
commit e92c783c2c

View File

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