|
@@ -1154,6 +1154,7 @@ Error Main::setup2(Thread::ID p_main_tid_override) {
|
|
if (show_logo) { //boot logo!
|
|
if (show_logo) { //boot logo!
|
|
String boot_logo_path = GLOBAL_DEF("application/boot_splash/image", String());
|
|
String boot_logo_path = GLOBAL_DEF("application/boot_splash/image", String());
|
|
bool boot_logo_scale = GLOBAL_DEF("application/boot_splash/fullsize", true);
|
|
bool boot_logo_scale = GLOBAL_DEF("application/boot_splash/fullsize", true);
|
|
|
|
+ bool boot_logo_filter = GLOBAL_DEF("application/boot_splash/use_filter", true);
|
|
ProjectSettings::get_singleton()->set_custom_property_info("application/boot_splash/image", PropertyInfo(Variant::STRING, "application/boot_splash/image", PROPERTY_HINT_FILE, "*.png"));
|
|
ProjectSettings::get_singleton()->set_custom_property_info("application/boot_splash/image", PropertyInfo(Variant::STRING, "application/boot_splash/image", PROPERTY_HINT_FILE, "*.png"));
|
|
|
|
|
|
Ref<Image> boot_logo;
|
|
Ref<Image> boot_logo;
|
|
@@ -1170,7 +1171,7 @@ Error Main::setup2(Thread::ID p_main_tid_override) {
|
|
Color boot_bg_color = GLOBAL_DEF("application/boot_splash/bg_color", boot_splash_bg_color);
|
|
Color boot_bg_color = GLOBAL_DEF("application/boot_splash/bg_color", boot_splash_bg_color);
|
|
if (boot_logo.is_valid()) {
|
|
if (boot_logo.is_valid()) {
|
|
OS::get_singleton()->_msec_splash = OS::get_singleton()->get_ticks_msec();
|
|
OS::get_singleton()->_msec_splash = OS::get_singleton()->get_ticks_msec();
|
|
- VisualServer::get_singleton()->set_boot_image(boot_logo, boot_bg_color, boot_logo_scale);
|
|
|
|
|
|
+ VisualServer::get_singleton()->set_boot_image(boot_logo, boot_bg_color, boot_logo_scale, boot_logo_filter);
|
|
|
|
|
|
} else {
|
|
} else {
|
|
#ifndef NO_DEFAULT_BOOT_LOGO
|
|
#ifndef NO_DEFAULT_BOOT_LOGO
|