summaryrefslogtreecommitdiff
path: root/core/config
diff options
context:
space:
mode:
authorHendrik Brucker <hendrik.brucker@mail.de>2021-07-12 03:35:51 +0200
committerHendrik Brucker <hendrik.brucker@mail.de>2021-07-12 03:35:51 +0200
commit74ab336fe349fc1a82785bcbfc22ad8c82c0e931 (patch)
tree177d7c9f7acc9a15a90144a941dc200b90eabe27 /core/config
parentd1f25bb5fc42afc5a03ec213c98a5e8b9fff623d (diff)
Change VSync mode project setting enum type from string to integer
Diffstat (limited to 'core/config')
-rw-r--r--core/config/project_settings.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/config/project_settings.cpp b/core/config/project_settings.cpp
index 29f53482fa..ac4e0db5b7 100644
--- a/core/config/project_settings.cpp
+++ b/core/config/project_settings.cpp
@@ -1114,7 +1114,8 @@ ProjectSettings::ProjectSettings() {
// Keep the enum values in sync with the `DisplayServer::ScreenOrientation` enum.
custom_prop_info["display/window/handheld/orientation"] = PropertyInfo(Variant::INT, "display/window/handheld/orientation", PROPERTY_HINT_ENUM, "Landscape,Portrait,Reverse Landscape,Reverse Portrait,Sensor Landscape,Sensor Portrait,Sensor");
- custom_prop_info["display/window/vsync/vsync_mode"] = PropertyInfo(Variant::STRING, "display/window/vsync/vsync_mode", PROPERTY_HINT_ENUM, "Disabled,Enabled,Adaptive,Mailbox");
+ // Keep the enum values in sync with the `DisplayServer::VSyncMode` enum.
+ custom_prop_info["display/window/vsync/vsync_mode"] = PropertyInfo(Variant::INT, "display/window/vsync/vsync_mode", PROPERTY_HINT_ENUM, "Disabled,Enabled,Adaptive,Mailbox");
custom_prop_info["rendering/driver/threads/thread_model"] = PropertyInfo(Variant::INT, "rendering/driver/threads/thread_model", PROPERTY_HINT_ENUM, "Single-Unsafe,Single-Safe,Multi-Threaded");
GLOBAL_DEF("physics/2d/run_on_thread", false);
GLOBAL_DEF("physics/3d/run_on_thread", false);