summaryrefslogtreecommitdiff
path: root/main/tests/test_render.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'main/tests/test_render.cpp')
-rw-r--r--main/tests/test_render.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/main/tests/test_render.cpp b/main/tests/test_render.cpp
index 62239a5cb5..0fbc5ea697 100644
--- a/main/tests/test_render.cpp
+++ b/main/tests/test_render.cpp
@@ -36,6 +36,7 @@
#include "core/os/main_loop.h"
#include "core/os/os.h"
#include "core/print_string.h"
+#include "servers/display_server.h"
#include "servers/visual_server.h"
#define OBJECT_COUNT 50
@@ -163,7 +164,7 @@ public:
// vs->camera_set_perspective( camera, 60.0,0.1, 100.0 );
viewport = vs->viewport_create();
- Size2i screen_size = OS::get_singleton()->get_window_size();
+ Size2i screen_size = DisplayServer::get_singleton()->window_get_size();
vs->viewport_set_size(viewport, screen_size.x, screen_size.y);
vs->viewport_attach_to_screen(viewport, Rect2(Vector2(), screen_size));
vs->viewport_set_active(viewport, true);