diff src/dmtext_ttf.c @ 1611:3571d4670964

NULL check.
author Matti Hamalainen <ccr@tnsp.org>
date Tue, 15 May 2018 11:58:46 +0300
parents e06abfde6c39
children b91d54a37b6b
line wrap: on
line diff
--- a/src/dmtext_ttf.c	Tue May 15 11:33:46 2018 +0300
+++ b/src/dmtext_ttf.c	Tue May 15 11:58:46 2018 +0300
@@ -10,7 +10,7 @@
 void dmDrawTTFTextConst(SDL_Surface *screen, TTF_Font *font, SDL_Color col, int xc, int yc, const char *fmt)
 {
     SDL_Surface *text = TTF_RenderText_Blended(font, fmt, col);
-    if (text)
+    if (text != NULL)
     {
         SDL_Rect rect;
         rect.x = xc;