Improve error reporting

This commit is contained in:
simon.kagstrom 2009-12-05 11:30:02 +00:00
parent 3d1bc2a042
commit 70a954461e

View File

@ -47,7 +47,7 @@ public:
SDL_Rect dst;
p = TTF_RenderText_Blended(this->font, msg, this->clr);
panic_if(!p, "%s\n", TTF_GetError());
panic_if(!p, "TTF error for %s: %s\n", msg, TTF_GetError());
dst = (SDL_Rect){x, y, w, h};