summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2022-01-26 17:19:51 (EST)
committer P. J. McDermott <pj@pehjota.net>2022-01-27 00:47:34 (EST)
commitd3592210f1bfeb419a4478a7b118db7e940fcb7d (patch)
treebe21ed4a1109bb12ed365cf3b62f8b28a4429391
parentc8b5065a45bc098d1c7dde0d88f6f78793223928 (diff)
downloadmazefight-d3592210f1bfeb419a4478a7b118db7e940fcb7d.zip
mazefight-d3592210f1bfeb419a4478a7b118db7e940fcb7d.tar.gz
mazefight-d3592210f1bfeb419a4478a7b118db7e940fcb7d.tar.bz2
maze: Use consistent error string
-rw-r--r--src/maze.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/maze.c b/src/maze.c
index a59b4e9..f1999e0 100644
--- a/src/maze.c
+++ b/src/maze.c
@@ -244,7 +244,7 @@ _mf_maze_draw_line(SDL_Renderer *renderer, int x, int y, int w, int h, int cw)
rect.h = h * cw + 2;
if (SDL_RenderFillRect(renderer, &rect) < 0) {
SDL_LogError(SDL_LOG_CATEGORY_APPLICATION,
- "Couldn't draw line: %s", SDL_GetError());
+ "Couldn't render maze: %s", SDL_GetError());
return -1;
}
@@ -263,8 +263,7 @@ mf_maze_render(struct mf_maze *m, SDL_Renderer *r, SDL_Color *color, int cw)
if (SDL_SetRenderDrawColor(r,
color->r, color->g, color->b, color->a) < 0) {
SDL_LogError(SDL_LOG_CATEGORY_APPLICATION,
- "Couldn't set drawing color: %s",
- SDL_GetError());
+ "Couldn't render maze: %s", SDL_GetError());
e = -1;
}