Draw checkerboard (or clear color) under embedded window.

This commit is contained in:
Pāvels Nadtočajevs 2025-05-13 09:08:10 +03:00
parent c0ebba60de
commit 6a118b5027
No known key found for this signature in database
GPG key ID: 8413210218EF35D2
4 changed files with 36 additions and 1 deletions

View file

@ -3132,6 +3132,9 @@ Error Main::setup2(bool p_show_boot_logo) {
// from --position and --resolution parameters.
window_mode = DisplayServer::WINDOW_MODE_WINDOWED;
window_flags = DisplayServer::WINDOW_FLAG_BORDERLESS_BIT;
if (bool(GLOBAL_GET("display/window/size/transparent"))) {
window_flags |= DisplayServer::WINDOW_FLAG_TRANSPARENT_BIT;
}
}
#ifdef TOOLS_ENABLED