summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2021-08-05 19:49:49 (EDT)
committer P. J. McDermott <pj@pehjota.net>2021-08-05 20:06:38 (EDT)
commit9da87b6829205774ab08d46253ae5ca39723ef5e (patch)
tree0a69475787a18fa019510c73aeab82f8447f60a4
parent67b9820cde00b67d9268bf51f45231eef30ebefe (diff)
downloadmazefight-9da87b6829205774ab08d46253ae5ca39723ef5e.zip
mazefight-9da87b6829205774ab08d46253ae5ca39723ef5e.tar.gz
mazefight-9da87b6829205774ab08d46253ae5ca39723ef5e.tar.bz2
tk: Fix label error message
-rw-r--r--src/tk/label.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tk/label.c b/src/tk/label.c
index 1fcfd84..ffade82 100644
--- a/src/tk/label.c
+++ b/src/tk/label.c
@@ -116,7 +116,7 @@ mftk_label_new(TTF_Font *font, const char *text, SDL_Color *color,
NULL) < 0) {
SDL_LogError(SDL_LOG_CATEGORY_APPLICATION,
"Couldn't get glyph metrics: %s",
- SDL_GetError());
+ TTF_GetError());
continue;
}
if (glyph_max_y > max_y) {