diff options
-rw-r--r-- | src/help.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -111,7 +111,7 @@ db_help(void) if (font == NULL) { db_err("Failed to open font (%s)", TTF_GetError()); free(font_path); - return; + return -1; } color.r = 0x00; @@ -123,7 +123,7 @@ db_help(void) 592); if (surface == NULL) { db_err("Failed to create surface (%s)", TTF_GetError()); - return; + return -1; } TTF_CloseFont(font); @@ -131,7 +131,7 @@ db_help(void) texture = SDL_CreateTextureFromSurface(renderer, surface); if (texture == NULL) { db_err("Failed to create texture (%s)", SDL_GetError()); - return; + return -1; } text_src_rect.x = 0; |