v3.2.3: initial overhaul to inset functionality for edge-to-edge
This commit is contained in:
@@ -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(){
|
||||
|
||||
Reference in New Issue
Block a user