commit 346490a4dd1c7ee8c5c5ee8a5feee817f2480ba1
Author: Jonathan Dowland <jon+github@alcopop.org>
AuthorDate: Mon Jul 4 06:25:21 2016 +0100
Commit: Jonathan Dowland <jon+github@alcopop.org>
CommitDate: Mon Jul 4 06:25:21 2016 +0100
textscreen: fix check for size of screen
SDL_GetCurrentDisplayMode returns 0 on fail.
Fixes #742.
---
textscreen/txt_sdl.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/textscreen/txt_sdl.c b/textscreen/txt_sdl.c
index e53b25fe..a80e4ee7 100644
--- a/textscreen/txt_sdl.c
+++ b/textscreen/txt_sdl.c
@@ -198,7 +198,7 @@ static void ChooseFont(void)
// Get desktop resolution.
// If in doubt and we can't get a list, always prefer to
// fall back to the normal font:
- if (!SDL_GetCurrentDisplayMode(0, &desktop_info))
+ if (SDL_GetCurrentDisplayMode(0, &desktop_info))
{
font = &highdpi_font;
return;