fix horizontal centering single window mode

This commit is contained in:
David Griswold 2025-07-03 23:08:18 -05:00 committed by OpenSauce04
parent ce2bf584c2
commit cb2e0ddf2c

View file

@ -123,6 +123,8 @@ FramebufferLayout SingleFrameLayout(u32 width, u32 height, bool swapped, bool up
} else {
top_screen = top_screen.TranslateY((height - top_screen.GetHeight()) / 2);
bot_screen = bot_screen.TranslateY((height - bot_screen.GetHeight()) / 2);
top_screen = top_screen.TranslateX((width - top_screen.GetWidth()) / 2);
bot_screen = bot_screen.TranslateX((width - bot_screen.GetWidth()) / 2);
}
#endif