aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSam Anthony <sam@samanthony.xyz>2025-02-23 21:46:54 -0500
committerSam Anthony <sam@samanthony.xyz>2025-02-23 21:46:54 -0500
commitf5eb301f02a04585964bb1ac4e0a2888d7202a16 (patch)
tree0539082897145c7c7fff1e680440c1e2274c902b
parent177c4daea57194d81fd017a1d078efb48d9383d9 (diff)
downloadvolute-f5eb301f02a04585964bb1ac4e0a2888d7202a16.zip
disable subpixel font rendering
-rw-r--r--renderer.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/renderer.c b/renderer.c
index 766edd7..89bdb2b 100644
--- a/renderer.c
+++ b/renderer.c
@@ -222,11 +222,8 @@ static void
draw_text(mu_Context *ctx, mu_Vec2 pos, mu_Color color, const char *str) {
if (!str || !*str) { return; }
- mu_Color bg = ctx->style->colors[MU_COLOR_WINDOWBG];
- SDL_Color fg_color = {color.r, color.g, color.b, color.a};
- SDL_Color bg_color = {bg.r, bg.g, bg.b, bg.a};
-
- SDL_Surface *surface = TTF_RenderText_LCD(font, str, fg_color, bg_color);
+ SDL_Color sdl_color = {color.r, color.g, color.b, color.a};
+ SDL_Surface *surface = TTF_RenderText_Blended(font, str, sdl_color);
if (!surface) {
fprintf(stderr, "%s\n", TTF_GetError());
return;