summaryrefslogtreecommitdiff
path: root/modules/mobile_vr
diff options
context:
space:
mode:
authorJuan Linietsky <juan@godotengine.org>2020-03-03 10:36:29 -0300
committerJuan Linietsky <reduzio@gmail.com>2020-03-26 15:49:34 +0100
commitf8a79a97c7d12da43b111a756f09ee7ad5ea28e9 (patch)
tree6728478a8e3bb2669ee4096cf354e87475b4469d /modules/mobile_vr
parent4396e98834f159da59ec790f2ff64fb65dacd9ce (diff)
Effective DisplayServer separation, rename X11 -> LinuxBSD
Diffstat (limited to 'modules/mobile_vr')
-rw-r--r--modules/mobile_vr/mobile_vr_interface.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/mobile_vr/mobile_vr_interface.cpp b/modules/mobile_vr/mobile_vr_interface.cpp
index af429eadd5..2a4b761b73 100644
--- a/modules/mobile_vr/mobile_vr_interface.cpp
+++ b/modules/mobile_vr/mobile_vr_interface.cpp
@@ -31,6 +31,7 @@
#include "mobile_vr_interface.h"
#include "core/input/input.h"
#include "core/os/os.h"
+#include "servers/display_server.h"
#include "servers/visual/visual_server_globals.h"
StringName MobileVRInterface::get_name() const {
@@ -339,7 +340,7 @@ Size2 MobileVRInterface::get_render_targetsize() {
_THREAD_SAFE_METHOD_
// we use half our window size
- Size2 target_size = OS::get_singleton()->get_window_size();
+ Size2 target_size = DisplayServer::get_singleton()->window_get_size();
target_size.x *= 0.5 * oversample;
target_size.y *= oversample;