From 5946a0fa7147aca8a39d10e9b879afa99a5d0264 Mon Sep 17 00:00:00 2001 From: Pere Pujal i Carabantes Date: Mon, 18 Jan 2021 23:38:08 +0100 Subject: [PATCH] Better text on scaled buttons. --- src/tuxpaint.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tuxpaint.c b/src/tuxpaint.c index 9324bf516..66e5e4669 100644 --- a/src/tuxpaint.c +++ b/src/tuxpaint.c @@ -7940,7 +7940,7 @@ static SDL_Surface *do_render_button_label(const char *const label) myfont = locale_font; tmp_surf = render_text(myfont, upstr, black); free(upstr); - surf = thumbnail(tmp_surf, min(button_w, tmp_surf->w), min(18 + button_label_y_nudge, tmp_surf->h), 0); + surf = thumbnail(tmp_surf, min(button_w, tmp_surf->w), min(18 * button_scale + button_label_y_nudge, tmp_surf->h), 0); SDL_FreeSurface(tmp_surf); return surf;