fix horizontal centering single window mode
This commit is contained in:
parent
ce2bf584c2
commit
cb2e0ddf2c
1 changed files with 2 additions and 0 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue