summaryrefslogtreecommitdiff
path: root/servers
diff options
context:
space:
mode:
Diffstat (limited to 'servers')
-rw-r--r--servers/display_server.cpp2
-rw-r--r--servers/display_server.h1
2 files changed, 3 insertions, 0 deletions
diff --git a/servers/display_server.cpp b/servers/display_server.cpp
index 102012f6d4..5b030be5a6 100644
--- a/servers/display_server.cpp
+++ b/servers/display_server.cpp
@@ -34,6 +34,8 @@
DisplayServer *DisplayServer::singleton = nullptr;
DisplayServer::SwitchVSyncCallbackInThread DisplayServer::switch_vsync_function = nullptr;
+bool DisplayServer::hidpi_allowed = false;
+
DisplayServer::DisplayServerCreate DisplayServer::server_create_functions[DisplayServer::MAX_SERVERS];
int DisplayServer::server_create_count = 0;
diff --git a/servers/display_server.h b/servers/display_server.h
index 5da9c76216..69e110d2b1 100644
--- a/servers/display_server.h
+++ b/servers/display_server.h
@@ -41,6 +41,7 @@ class DisplayServer : public Object {
static DisplayServer *singleton;
bool vsync_enabled = true;
+ static bool hidpi_allowed;
public:
_FORCE_INLINE_ static DisplayServer *get_singleton() {