ProjectSettings: fix category for per pixel transparency settings

This commit is contained in:
Rémi Verschelde 2019-02-20 14:37:25 +01:00
parent f41439c84b
commit e7018e4017
2 changed files with 8 additions and 9 deletions

View File

@ -319,9 +319,6 @@
<member name="display/mouse_cursor/custom_image_hotspot" type="Vector2" setter="" getter=""> <member name="display/mouse_cursor/custom_image_hotspot" type="Vector2" setter="" getter="">
Hotspot for the custom mouse cursor image. Hotspot for the custom mouse cursor image.
</member> </member>
<member name="display/window/allow_per_pixel_transparency" type="bool" setter="" getter="">
Allow per pixel transparency in a Desktop window. This affects performance if not needed, so leave it off.
</member>
<member name="display/window/dpi/allow_hidpi" type="bool" setter="" getter=""> <member name="display/window/dpi/allow_hidpi" type="bool" setter="" getter="">
Allow HiDPI display on Windows and OSX. On Desktop Linux, this can't be enabled or disabled. Allow HiDPI display on Windows and OSX. On Desktop Linux, this can't be enabled or disabled.
</member> </member>
@ -331,9 +328,12 @@
<member name="display/window/handheld/orientation" type="String" setter="" getter=""> <member name="display/window/handheld/orientation" type="String" setter="" getter="">
Default orientation for cell phone or tablet. Default orientation for cell phone or tablet.
</member> </member>
<member name="display/window/per_pixel_transparency" type="bool" setter="" getter=""> <member name="display/window/per_pixel_transparency/allowed" type="bool" setter="" getter="">
Allow per pixel transparency in a Desktop window. This affects performance if not needed, so leave it off.
</member> </member>
<member name="display/window/per_pixel_transparency_splash" type="bool" setter="" getter=""> <member name="display/window/per_pixel_transparency/enabled" type="bool" setter="" getter="">
</member>
<member name="display/window/per_pixel_transparency/splash" type="bool" setter="" getter="">
</member> </member>
<member name="display/window/size/always_on_top" type="bool" setter="" getter=""> <member name="display/window/size/always_on_top" type="bool" setter="" getter="">
Force the window to be always on top. Force the window to be always on top.

View File

@ -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_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); video_mode.use_vsync = GLOBAL_DEF("display/window/vsync/use_vsync", true);
OS::get_singleton()->_use_vsync = video_mode.use_vsync; OS::get_singleton()->_use_vsync = video_mode.use_vsync;
video_mode.layered = GLOBAL_DEF("display/window/per_pixel_transparency", false); OS::get_singleton()->_allow_layered = GLOBAL_DEF("display/window/per_pixel_transparency/allowed", false);
video_mode.layered_splash = GLOBAL_DEF("display/window/per_pixel_transparency_splash", 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", 2);
GLOBAL_DEF("rendering/quality/intended_usage/framebuffer_allocation.mobile", 3); GLOBAL_DEF("rendering/quality/intended_usage/framebuffer_allocation.mobile", 3);