mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Fix screen_get_usable_rect returning display safe area
This commit is contained in:
parent
bc7ccc909b
commit
97e87a2daf
10 changed files with 55 additions and 40 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue