Merge pull request #13 from TheAwesome98-Real/master

Use TTF_RenderText_Blended for smoother text
This commit is contained in:
sam-astro 2022-05-22 17:18:31 -04:00 committed by GitHub
commit 5d709f8d2a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -554,7 +554,7 @@ public:
{
SDL_Color color = { r, g, b };
SDL_Surface* surface = TTF_RenderText_Solid(font, content.c_str(), color);
SDL_Surface* surface = TTF_RenderText_Blended(font, content.c_str(), color);
SDL_DestroyTexture(texture);
texture = SDL_CreateTextureFromSurface(gRenderer, surface);