From fef8aec302b7fb3ebc129fd25a3accd5fec35605 Mon Sep 17 00:00:00 2001 From: Adrien Destugues Date: Sun, 22 Aug 2010 18:26:12 +0000 Subject: [PATCH] Put a visible error message in case of SDL_Image fail. git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1587 416bcca6-2ee7-4201-b75f-2eb2f807beb1 --- src/text.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/text.c b/src/text.c index 7ff4019f..1a7edd50 100644 --- a/src/text.c +++ b/src/text.c @@ -48,7 +48,6 @@ #endif #include -// SFont #include "SFont.h" #include "struct.h" @@ -56,6 +55,7 @@ #include "sdlscreen.h" #include "io.h" #include "errors.h" +#include "windows.h" typedef struct T_Font { @@ -461,7 +461,7 @@ byte *Render_text_SFont(const char *str, int font_number, int *width, int *heigh Surface_fonte=IMG_Load(Font_name(font_number)); if (!Surface_fonte) { - DEBUG("Font loading failed",0); + Warning_message("Error loading font. The file may be corrupt."); return NULL; } font=SFont_InitFont(Surface_fonte);