From e7018e4017c7ce99f7f56a58e40c18b3696bdabf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Wed, 20 Feb 2019 14:37:25 +0100 Subject: [PATCH] ProjectSettings: fix category for per pixel transparency settings --- doc/classes/ProjectSettings.xml | 10 +++++----- main/main.cpp | 7 +++---- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/doc/classes/ProjectSettings.xml b/doc/classes/ProjectSettings.xml index 6b53615535e..1782edf25d6 100644 --- a/doc/classes/ProjectSettings.xml +++ b/doc/classes/ProjectSettings.xml @@ -319,9 +319,6 @@ Hotspot for the custom mouse cursor image. - - Allow per pixel transparency in a Desktop window. This affects performance if not needed, so leave it off. - Allow HiDPI display on Windows and OSX. On Desktop Linux, this can't be enabled or disabled. @@ -331,9 +328,12 @@ Default orientation for cell phone or tablet. - + + Allow per pixel transparency in a Desktop window. This affects performance if not needed, so leave it off. - + + + Force the window to be always on top. diff --git a/main/main.cpp b/main/main.cpp index c504aa7e8e1..b81a379dbbf 100644 --- a/main/main.cpp +++ b/main/main.cpp @@ -926,13 +926,12 @@ Error Main::setup(const char *execpath, int argc, char *argv[], bool p_second_ph OS::get_singleton()->_allow_hidpi = GLOBAL_DEF("display/window/dpi/allow_hidpi", false); } - OS::get_singleton()->_allow_layered = GLOBAL_DEF("display/window/allow_per_pixel_transparency", false); - video_mode.use_vsync = GLOBAL_DEF("display/window/vsync/use_vsync", true); OS::get_singleton()->_use_vsync = video_mode.use_vsync; - video_mode.layered = GLOBAL_DEF("display/window/per_pixel_transparency", false); - video_mode.layered_splash = GLOBAL_DEF("display/window/per_pixel_transparency_splash", false); + OS::get_singleton()->_allow_layered = GLOBAL_DEF("display/window/per_pixel_transparency/allowed", false); + video_mode.layered = GLOBAL_DEF("display/window/per_pixel_transparency/enabled", false); + video_mode.layered_splash = GLOBAL_DEF("display/window/per_pixel_transparency/splash", false); GLOBAL_DEF("rendering/quality/intended_usage/framebuffer_allocation", 2); GLOBAL_DEF("rendering/quality/intended_usage/framebuffer_allocation.mobile", 3);