From bc3ee5a60df3bca56df1180a0c237e9ce48fd347 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Sat, 19 Dec 2020 19:53:53 +0100 Subject: [PATCH] Fix bluescreen layout on notched phones --- UI/EmuScreen.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/UI/EmuScreen.cpp b/UI/EmuScreen.cpp index e89bc1b1ae..04ef68437b 100644 --- a/UI/EmuScreen.cpp +++ b/UI/EmuScreen.cpp @@ -1289,8 +1289,8 @@ Game ID (Title): %s (%s) ); draw2d->SetFontScale(.7f, .7f); - int x = 20; - int y = 50; + int x = 20 + System_GetPropertyFloat(SYSPROP_DISPLAY_SAFE_INSET_LEFT); + int y = 50 + System_GetPropertyFloat(SYSPROP_DISPLAY_SAFE_INSET_TOP); draw2d->DrawTextShadow(ubuntu24, statbuf, x, y, 0xFFFFFFFF); y += 140; @@ -1333,7 +1333,10 @@ BREAK g_Config.iCpuCore, g_Config.iLockedCPUSpeed); - draw2d->DrawTextShadow(ubuntu24, statbuf, 420, 50, 0xFFFFFFFF); + x += 400; + y = 50; + + draw2d->DrawTextShadow(ubuntu24, statbuf, x, y, 0xFFFFFFFF); } static void DrawAudioDebugStats(DrawBuffer *draw2d, const Bounds &bounds) {