citra-emu
/
citra
Archived
1
0
Fork 0

framebuffer_layout: Fix positioning of small screen when centered in landscape on mobile (#6071)

This commit is contained in:
merry 2022-07-17 13:19:55 +01:00 committed by GitHub
parent 353aaaf665
commit 2d95b9946f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -184,7 +184,7 @@ FramebufferLayout MobileLandscapeFrameLayout(u32 width, u32 height, bool swapped
// Shift the small screen to the bottom right corner // Shift the small screen to the bottom right corner
small_screen = small_screen.TranslateX(large_screen.right); small_screen = small_screen.TranslateX(large_screen.right);
if (center_vertical) { if (center_vertical) {
small_screen.TranslateY(large_screen.GetHeight() + large_screen.top - small_screen = small_screen.TranslateY(large_screen.GetHeight() + large_screen.top -
small_screen.GetHeight()); small_screen.GetHeight());
} }