From dacac930a52418b7103cb194dc35d2f7cfd3f61e Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Fri, 5 Sep 2025 13:18:13 -0400 Subject: [PATCH] v3.2.4: improved large vs. small cutout detection on Android --- .../android/AndroidPlatformSupport.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/android/src/main/java/com/shatteredpixel/shatteredpixeldungeon/android/AndroidPlatformSupport.java b/android/src/main/java/com/shatteredpixel/shatteredpixeldungeon/android/AndroidPlatformSupport.java index 72c0d10b9..29942aac6 100644 --- a/android/src/main/java/com/shatteredpixel/shatteredpixeldungeon/android/AndroidPlatformSupport.java +++ b/android/src/main/java/com/shatteredpixel/shatteredpixeldungeon/android/AndroidPlatformSupport.java @@ -91,8 +91,9 @@ public class AndroidPlatformSupport extends PlatformSupport { int screenSize = Game.width * Game.height; for (Rect r : cutout.getBoundingRects()){ int cutoutSize = Math.abs(r.height() * r.width()); - //display cutouts are considered large if they take up more than 0.5% of the screen - if (cutoutSize*200 >= screenSize){ + //display cutouts are considered large if they take up more than 0.605% of the screen + //in reality we want less than about 0.5%, but some cutouts over-report their size + if (cutoutSize*165 >= screenSize){ largeCutout = true; } }