v3.2.3: initial overhaul to inset functionality for edge-to-edge

This commit is contained in:
Evan Debenham
2025-08-29 14:36:24 -04:00
parent 0630d65cc6
commit 09f5948aa2
23 changed files with 376 additions and 175 deletions

View File

@@ -58,15 +58,6 @@ public class DeviceCompat {
Gdx.app.log( tag, message );
}
public static RectF getSafeInsets(){
RectF result = new RectF();
result.left = Gdx.graphics.getSafeInsetLeft();
result.top = Gdx.graphics.getSafeInsetTop();
result.right = Gdx.graphics.getSafeInsetRight();
result.bottom = Gdx.graphics.getSafeInsetBottom();
return result;
}
//some devices (macOS mainly) report virtual pixels to Shattered, but sometimes we want real pixel precision
//this returns the number of real pixels per virtual pixel in the X dimension...
public static float getRealPixelScaleX(){