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 d5e0005 commit e1342ad
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 e1342ad

Please sign in to comment.