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:
parent
c0216735db
commit
8ca0fd45a5
|
@ -653,7 +653,6 @@ void gfx_createMessageBox(SDL_Surface *face, const char *message, int transparen
|
||||||
int border = 5;
|
int border = 5;
|
||||||
int x = border;
|
int x = border;
|
||||||
int y = border;
|
int y = border;
|
||||||
SDL_Surface *textArea;
|
|
||||||
|
|
||||||
if (gfx_messageBox != NULL)
|
if (gfx_messageBox != NULL)
|
||||||
{
|
{
|
||||||
|
@ -678,11 +677,7 @@ void gfx_createMessageBox(SDL_Surface *face, const char *message, int transparen
|
||||||
x = border;
|
x = border;
|
||||||
}
|
}
|
||||||
|
|
||||||
textArea = gfx_createSurface(gfx_messageBox->w - (x + border), gfx_messageBox->h - y);
|
gfx_renderUnicode(message, x, y, FONT_WHITE, 1, gfx_messageBox);
|
||||||
gfx_renderUnicode(message, 0, 0, FONT_WHITE, 1, textArea);
|
|
||||||
gfx_blit(textArea, x, y, gfx_messageBox);
|
|
||||||
SDL_FreeSurface(textArea);
|
|
||||||
textArea = NULL;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
SDL_Surface *gfx_loadImage(const char *filename)
|
SDL_Surface *gfx_loadImage(const char *filename)
|
||||||
|
|
Loading…
Reference in New Issue