Better text on scaled buttons.
This commit is contained in:
parent
8529786356
commit
5946a0fa71
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue