You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Effective DisplayServer separation, rename X11 -> LinuxBSD
This commit is contained in:
committed by
Juan Linietsky
parent
4396e98834
commit
f8a79a97c7
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user