summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorWei Guo <me@imkira.com>2022-10-23 18:34:41 +0800
committerkiraweiguo <kiraweiguo@tencent.com>2022-10-24 13:50:25 +0800
commitd7e39e313b1f44d122be89a356dab8e4028a2043 (patch)
treee6f612b44d61a871720f099999db3da71b04fa56 /tests
parent0d04e7ec914ff609dfbdfff3dca04ed12a21e600 (diff)
Make window creation with custom position do not flash
Diffstat (limited to 'tests')
-rw-r--r--tests/test_main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_main.cpp b/tests/test_main.cpp
index 4c861eacba..d30d4a9e70 100644
--- a/tests/test_main.cpp
+++ b/tests/test_main.cpp
@@ -199,7 +199,7 @@ struct GodotTestCaseListener : public doctest::IReporter {
OS::get_singleton()->set_has_server_feature_callback(nullptr);
for (int i = 0; i < DisplayServer::get_create_function_count(); i++) {
if (String("headless") == DisplayServer::get_create_function_name(i)) {
- DisplayServer::create(i, "", DisplayServer::WindowMode::WINDOW_MODE_MINIMIZED, DisplayServer::VSyncMode::VSYNC_ENABLED, 0, Vector2i(0, 0), err);
+ DisplayServer::create(i, "", DisplayServer::WindowMode::WINDOW_MODE_MINIMIZED, DisplayServer::VSyncMode::VSYNC_ENABLED, 0, nullptr, Vector2i(0, 0), err);
break;
}
}