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

Merge pull request #109491 from syntaxerror247/window-color

Android: Add method to set root window color at runtime
This commit is contained in:
Thaddeus Crews
2025-09-26 13:47:32 -05:00
10 changed files with 56 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();
}