dt_drawtext_col: Fix blend mode

This fixes #66. It was a regression by commit 6b646b3.
This commit is contained in:
kichikuou
2025-05-14 12:46:30 +09:00
parent 904e10daa7
commit ec071d4e8a
+1
View File
@@ -71,6 +71,7 @@ int dt_drawtext_col(SDL_Surface *sf, int x, int y, char *buf, int r, int g, int
if (glyph == NULL) return 0;
SDL_Rect rect = {x, y, glyph->w, glyph->h};
SDL_SetSurfaceBlendMode(glyph, SDL_BLENDMODE_NONE);
SDL_BlitSurface(glyph, NULL, sf, &rect);
SDL_FreeSurface(glyph);
return rect.w;