Text render bug fix.
This commit is contained in:
parent
5bf486ede6
commit
7337460853
|
@ -84,7 +84,7 @@ static void drawTextNormal(int x, int y, int size, int align, SDL_Color c, char
|
||||||
|
|
||||||
if (!t)
|
if (!t)
|
||||||
{
|
{
|
||||||
surface = TTF_RenderText_Blended(font[size], text, c);
|
surface = TTF_RenderText_Blended(font[size], text, colors.white);
|
||||||
t = SDL_CreateTextureFromSurface(app.renderer, surface);
|
t = SDL_CreateTextureFromSurface(app.renderer, surface);
|
||||||
SDL_FreeSurface(surface);
|
SDL_FreeSurface(surface);
|
||||||
|
|
||||||
|
|
|
@ -26,3 +26,4 @@ extern void blit(SDL_Texture *texture, int x, int y, int centered);
|
||||||
extern char *getFileLocation(char *filename);
|
extern char *getFileLocation(char *filename);
|
||||||
|
|
||||||
extern App app;
|
extern App app;
|
||||||
|
extern Colors colors;
|
||||||
|
|
Loading…
Reference in New Issue