changeset 1611:3571d4670964

NULL check.
author Matti Hamalainen <ccr@tnsp.org>
date Tue, 15 May 2018 11:58:46 +0300
parents 61246926756a
children 749f8f808531
files src/dmtext_ttf.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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;