You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-23 15:16:17 +00:00
Fix Android get_screen_orientation() not returning valid values
(cherry picked from commit 05744ee0e2)
This commit is contained in:
committed by
Rémi Verschelde
parent
2a12784498
commit
fab0c48c80
@@ -466,6 +466,7 @@ void OS_Android::set_screen_orientation(ScreenOrientation p_orientation) {
|
||||
|
||||
OS::ScreenOrientation OS_Android::get_screen_orientation() const {
|
||||
const int orientation = godot_io_java->get_screen_orientation();
|
||||
ERR_FAIL_INDEX_V_MSG(orientation, 7, OS::ScreenOrientation(0), "Unrecognized screen orientation.");
|
||||
return OS::ScreenOrientation(orientation);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user