src/text.c

changeset 92
78ce93fb46e5
parent 89
e1f682a8a145
--- a/src/text.c	Tue Apr 22 19:36:27 2025 +0200
+++ b/src/text.c	Wed Apr 23 23:43:45 2025 +0200
@@ -51,7 +51,7 @@
             font, text->text.ptr, asc_col_sdl(text->color), text->max_width
     );
     if (surface == NULL) {
-        asc_error(SDL_GetError());
+        asc_error("Rendering TTF surface failed: %s", SDL_GetError());
         return;
     }
     asc_set_scale2d(node, surface->w, surface->h);

mercurial