Skip to content

Commit

Permalink
Merge pull request #26087 from akien-mga/settings-per-pixel-transparency
Browse files Browse the repository at this point in the history
ProjectSettings: fix category for per pixel transparency settings
  • Loading branch information
akien-mga authored Feb 20, 2019
2 parents d39c057 + e7018e4 commit 5d815a5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
10 changes: 5 additions & 5 deletions doc/classes/ProjectSettings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -319,9 +319,6 @@
<member name="display/mouse_cursor/custom_image_hotspot" type="Vector2" setter="" getter="">
Hotspot for the custom mouse cursor image.
</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="">
Allow HiDPI display on Windows and OSX. On Desktop Linux, this can't be enabled or disabled.
</member>
Expand All @@ -331,9 +328,12 @@
<member name="display/window/handheld/orientation" type="String" setter="" getter="">
Default orientation for cell phone or tablet.
</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 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 name="display/window/per_pixel_transparency/splash" type="bool" setter="" getter="">
</member>
<member name="display/window/size/always_on_top" type="bool" setter="" getter="">
Force the window to be always on top.
Expand Down
7 changes: 3 additions & 4 deletions main/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 5d815a5

Please sign in to comment.