diff options
author | bruvzg <7645683+bruvzg@users.noreply.github.com> | 2023-01-05 00:00:02 +0200 |
---|---|---|
committer | bruvzg <7645683+bruvzg@users.noreply.github.com> | 2023-01-07 11:14:35 +0200 |
commit | 2718a7b7d39962100e59b8616077603034d77f8e (patch) | |
tree | 6d48f930ca78c7f2b991573ba375cf70c0f83d89 /tests | |
parent | 163f6f5fe87d11645e94cd49f41226ab03063e53 (diff) |
Add support for the custom initial screen for the main window, fix primary screen detection.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_main.cpp b/tests/test_main.cpp index 235ad8a70d..85a271fc9c 100644 --- a/tests/test_main.cpp +++ b/tests/test_main.cpp @@ -203,7 +203,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, nullptr, Vector2i(0, 0), err); + DisplayServer::create(i, "", DisplayServer::WindowMode::WINDOW_MODE_MINIMIZED, DisplayServer::VSyncMode::VSYNC_ENABLED, 0, nullptr, Vector2i(0, 0), DisplayServer::SCREEN_PRIMARY, err); break; } } |