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

Android: Add method to set root window color at runtime

This commit is contained in:
Anish Mishra
2025-08-10 19:57:02 +05:30
parent a3b42d85d2
commit 0ad232423d
8 changed files with 50 additions and 10 deletions

View File

@@ -626,6 +626,12 @@ bool DisplayServerAndroid::can_any_window_draw() const {
return true;
}
void DisplayServerAndroid::window_set_color(const Color &p_color) {
GodotJavaWrapper *godot_java = OS_Android::get_singleton()->get_godot_java();
ERR_FAIL_NULL(godot_java);
godot_java->set_window_color(p_color);
}
void DisplayServerAndroid::process_events() {
Input::get_singleton()->flush_buffered_events();
}