From bac5c1a2e5848d581baa241e8c8f22a3eff015ea Mon Sep 17 00:00:00 2001 From: obligaron Date: Sun, 19 Dec 2021 08:59:49 +0100 Subject: [PATCH] Fix compiling tests with sdl 1 --- test/main.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/main.cpp b/test/main.cpp index 1df8ac4f6..dcef793bc 100644 --- a/test/main.cpp +++ b/test/main.cpp @@ -7,8 +7,11 @@ int main(int argc, char **argv) { // Disable error dialogs. devilution::gbQuietMode = true; + +#if SDL_VERSION_ATLEAST(2, 0, 0) // Disable hardware cursor while testing. devilution::sgOptions.Graphics.hardwareCursor.SetValue(false); +#endif testing::InitGoogleTest(&argc, argv); return RUN_ALL_TESTS();