From 2d95b9946f207987cd4f3b4c3a1eb58b17c99767 Mon Sep 17 00:00:00 2001 From: merry Date: Sun, 17 Jul 2022 13:19:55 +0100 Subject: [PATCH] framebuffer_layout: Fix positioning of small screen when centered in landscape on mobile (#6071) --- src/core/frontend/framebuffer_layout.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/frontend/framebuffer_layout.cpp b/src/core/frontend/framebuffer_layout.cpp index 62bf9f34b..a75ef85cc 100644 --- a/src/core/frontend/framebuffer_layout.cpp +++ b/src/core/frontend/framebuffer_layout.cpp @@ -184,8 +184,8 @@ FramebufferLayout MobileLandscapeFrameLayout(u32 width, u32 height, bool swapped // Shift the small screen to the bottom right corner small_screen = small_screen.TranslateX(large_screen.right); if (center_vertical) { - small_screen.TranslateY(large_screen.GetHeight() + large_screen.top - - small_screen.GetHeight()); + small_screen = small_screen.TranslateY(large_screen.GetHeight() + large_screen.top - + small_screen.GetHeight()); } res.top_screen = swapped ? small_screen : large_screen;