Skip to content

Commit

Permalink
Fix the non_interactive() function used in WML tests
Browse files Browse the repository at this point in the history
The function previously returned false, even in non-interactive
scenarios like in WML tests. This fixes the function to return the
expected values.
  • Loading branch information
aginor committed Sep 25, 2015
1 parent 5bd53b9 commit 85dad75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/video.cpp
Expand Up @@ -241,7 +241,7 @@ bool non_interactive()
if (fake_interactive)
return false;
#if SDL_VERSION_ATLEAST(2, 0, 0)
return false;
return window == NULL;
#else
return SDL_GetVideoSurface() == NULL;
#endif
Expand Down

0 comments on commit 85dad75

Please sign in to comment.