Mend backward logic in font picking for buttons
Was choosing largest font (and scaling down) for medium-sized buttons, and medium font for large-sized buttons.
This commit is contained in:
parent
726aa0897e
commit
3ebb76e7bb
1 changed files with 2 additions and 2 deletions
|
|
@ -22,7 +22,7 @@
|
|||
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
(See COPYING.txt)
|
||||
|
||||
June 14, 2002 - January 24, 2021
|
||||
June 14, 2002 - January 26, 2021
|
||||
*/
|
||||
|
||||
|
||||
|
|
@ -7948,7 +7948,7 @@ static SDL_Surface *do_render_button_label(const char *const label)
|
|||
|
||||
if (button_w <= ORIGINAL_BUTTON_SIZE)
|
||||
myfont = small_font;
|
||||
else if (button_w >= ORIGINAL_BUTTON_SIZE * 2)
|
||||
else if (button_w <= ORIGINAL_BUTTON_SIZE * 2)
|
||||
myfont = medium_font;
|
||||
else
|
||||
myfont = large_font;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue