Fixed font color bug, as implemented by KMetalMind.

This commit is contained in:
Pieter Hulshoff 2016-05-03 16:00:36 +02:00
parent ba7a5ebfb9
commit 6aa0a452b5

View File

@ -145,7 +145,7 @@ bool Font::initialize(std::string fontPath, int fontSize, SDL_Color color)
SDL_LockMutex(SDL::getMutex());
texture = SDL_CreateTextureFromSurface(SDL::getRenderer(), atlasSurface);
SDL_SetTextureBlendMode(texture, SDL_BLENDMODE_ADD);
SDL_SetTextureBlendMode(texture, SDL_BLENDMODE_BLEND);
SDL_FreeSurface(atlasSurface);
SDL_UnlockMutex(SDL::getMutex());