From cf759c208a3d3da15c5b509c4347531320d8c067 Mon Sep 17 00:00:00 2001 From: Gleb Mazovetskiy Date: Tue, 10 Dec 2024 12:57:16 +0000 Subject: [PATCH] timedemo_test: SDL1.2 compat --- test/timedemo_test.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/test/timedemo_test.cpp b/test/timedemo_test.cpp index 79eb5d334..afb60a00a 100644 --- a/test/timedemo_test.cpp +++ b/test/timedemo_test.cpp @@ -23,7 +23,14 @@ bool Dummy_GetHeroInfo(_uiheroinfo *pInfo) void RunTimedemo(std::string timedemoFolderName) { - if (SDL_Init(SDL_INIT_EVENTS) <= -1) { + if (SDL_Init( +#ifdef USE_SDL1 + 0 +#else + SDL_INIT_EVENTS +#endif + ) + <= -1) { ErrSdl(); } std::string unitTestFolderCompletePath = paths::BasePath() + "/test/fixtures/timedemo/" + timedemoFolderName;