v3.2.5: fixed cutout handling triggering when no cutout is there on iOS

This commit is contained in:
Evan Debenham
2025-09-24 16:30:15 -04:00
parent 0cce050429
commit 4008adde84

View File

@@ -373,7 +373,7 @@ public class GameScene extends PixelScene {
float menuBarMaxLeft = uiCamera.width-insets.right-MenuPane.WIDTH; float menuBarMaxLeft = uiCamera.width-insets.right-MenuPane.WIDTH;
int hpBarMaxWidth = 50; //default max width int hpBarMaxWidth = 50; //default max width
float buffBarTopRowMaxWidth = 55; //default max width float buffBarTopRowMaxWidth = 55; //default max width
if (largeInsetTop == 0){ if (largeInsetTop == 0 && insets.top > 0){
//iOS's Dynamic island badly obstructs the first buff bar row //iOS's Dynamic island badly obstructs the first buff bar row
if (DeviceCompat.isiOS()){ if (DeviceCompat.isiOS()){
//TODO bad to hardcode and approximate this atm //TODO bad to hardcode and approximate this atm