From 8ca0fd45a58015550052a813749bfb6c4bb5af75 Mon Sep 17 00:00:00 2001 From: Julie Marchant Date: Wed, 19 Jun 2019 21:29:02 -0400 Subject: [PATCH] Revert the thing where an extra surf was created for rendering radio messages. It caused the text to be poorly rendered. --- src/gfx.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/gfx.c b/src/gfx.c index cc536e0..f2e7a75 100644 --- a/src/gfx.c +++ b/src/gfx.c @@ -653,7 +653,6 @@ void gfx_createMessageBox(SDL_Surface *face, const char *message, int transparen int border = 5; int x = border; int y = border; - SDL_Surface *textArea; if (gfx_messageBox != NULL) { @@ -678,11 +677,7 @@ void gfx_createMessageBox(SDL_Surface *face, const char *message, int transparen x = border; } - textArea = gfx_createSurface(gfx_messageBox->w - (x + border), gfx_messageBox->h - y); - gfx_renderUnicode(message, 0, 0, FONT_WHITE, 1, textArea); - gfx_blit(textArea, x, y, gfx_messageBox); - SDL_FreeSurface(textArea); - textArea = NULL; + gfx_renderUnicode(message, x, y, FONT_WHITE, 1, gfx_messageBox); } SDL_Surface *gfx_loadImage(const char *filename)