Skip to content

Commit

Permalink
timedemo_test: SDL1.2 compat
Browse files Browse the repository at this point in the history
  • Loading branch information
glebm committed Dec 11, 2024
1 parent 178cd12 commit 6a0657d
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion test/timedemo_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 6a0657d

Please sign in to comment.