diff options
| author | Sam Anthony <sam@samanthony.xyz> | 2025-02-23 21:46:54 -0500 |
|---|---|---|
| committer | Sam Anthony <sam@samanthony.xyz> | 2025-02-23 21:46:54 -0500 |
| commit | f5eb301f02a04585964bb1ac4e0a2888d7202a16 (patch) | |
| tree | 0539082897145c7c7fff1e680440c1e2274c902b | |
| parent | 177c4daea57194d81fd017a1d078efb48d9383d9 (diff) | |
| download | volute-f5eb301f02a04585964bb1ac4e0a2888d7202a16.zip | |
disable subpixel font rendering
| -rw-r--r-- | renderer.c | 7 |
1 files changed, 2 insertions, 5 deletions
@@ -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; |