v3.2.4: updates to improve handling of Android cutouts:

- HP bar can now resize-reposition to prevent being cut off
- menu pane can now move inward to prevent being cut off
- increased buff bar cut off sensitivity
- slightly increased 'large cutout' permissiveness
This commit is contained in:
Evan Debenham
2025-09-14 11:58:11 -04:00
parent f83cd78243
commit 2c0f1263a7
6 changed files with 70 additions and 17 deletions

View File

@@ -121,9 +121,10 @@ public class AndroidPlatformSupport extends PlatformSupport {
for (Rect r : cutout.getBoundingRects()){
//use abs as some cutouts can apparently be returned inverted
int cutoutSize = Math.abs(r.height() * r.width());
//display cutouts are considered large if they take up more than 0.605% of the screen
//display cutouts are considered large if they take up more than 0.667% of the screen
//in reality we want less than about 0.5%, but some cutouts over-report their size
if (cutoutSize*165 >= screenSize){
//Pixel devices especially =S
if (cutoutSize*150 >= screenSize){
largeCutout = true;
}
}