From 786a7341a7443390e2c98ff7fe00a995f4d8cf67 Mon Sep 17 00:00:00 2001 From: Hugo Locurcio Date: Thu, 13 Jun 2019 22:37:19 +0200 Subject: Add an option to disable boot splash filtering Disabling filtering is usually desired in projects using a pixel art style. This closes #19415. --- main/main.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'main') diff --git a/main/main.cpp b/main/main.cpp index 3f01a17ea7..304bda0e62 100644 --- a/main/main.cpp +++ b/main/main.cpp @@ -1153,6 +1153,7 @@ Error Main::setup2(Thread::ID p_main_tid_override) { if (show_logo) { //boot logo! 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_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")); Ref boot_logo; @@ -1169,7 +1170,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); if (boot_logo.is_valid()) { 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 { #ifndef NO_DEFAULT_BOOT_LOGO -- cgit v1.2.3