From 3ebb76e7bb8861fb2f93dad993bddd3445708d50 Mon Sep 17 00:00:00 2001 From: Bill Kendrick Date: Tue, 26 Jan 2021 23:10:05 -0800 Subject: [PATCH] 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. --- src/tuxpaint.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tuxpaint.c b/src/tuxpaint.c index c097df7d2..4fbb52724 100644 --- a/src/tuxpaint.c +++ b/src/tuxpaint.c @@ -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;