1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-14 13:41:12 +00:00

Update resize settings:

- Unlock resizing for the Godot Editor
- Add an option to specify whether a game is resizeable for the Godot template

(cherry picked from commit 3f299e9255)
This commit is contained in:
Fredia Huya-Kouadio
2022-04-04 00:22:02 -07:00
committed by Rémi Verschelde
parent 73248ccf89
commit 4ff726b933
4 changed files with 17 additions and 9 deletions

View File

@@ -208,11 +208,14 @@ void GodotIOJavaWrapper::hide_vk() {
}
void GodotIOJavaWrapper::set_screen_orientation(int p_orient) {
// The Godot Android Editor sets its own orientation via its AndroidManifest
#ifndef TOOLS_ENABLED
if (_set_screen_orientation) {
JNIEnv *env = get_jni_env();
ERR_FAIL_COND(env == nullptr);
env->CallVoidMethod(godot_io_instance, _set_screen_orientation, p_orient);
}
#endif
}
int GodotIOJavaWrapper::get_screen_orientation() const {