Revert the thing where an extra surf was created for rendering radio messages.

It caused the text to be poorly rendered.
This commit is contained in:
Julie Marchant 2019-06-19 21:29:02 -04:00
parent c0216735db
commit 8ca0fd45a5
1 changed files with 1 additions and 6 deletions

View File

@ -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)