You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-06 12:20:30 +00:00
Fix screen_get_usable_rect returning display safe area
This commit is contained in:
@@ -240,7 +240,7 @@ public class GodotIO {
|
||||
return fallback;
|
||||
}
|
||||
|
||||
public int[] screenGetUsableRect() {
|
||||
public int[] getDisplaySafeArea() {
|
||||
DisplayMetrics metrics = activity.getResources().getDisplayMetrics();
|
||||
Display display = activity.getWindowManager().getDefaultDisplay();
|
||||
Point size = new Point();
|
||||
|
||||
Reference in New Issue
Block a user