From 4f9e3556d71c77998c0c55bf93ddd7a254a5d7ff Mon Sep 17 00:00:00 2001 From: Tom Gilbert Date: Thu, 9 Nov 2000 22:48:22 +0000 Subject: [PATCH] Fixed something that's been bugging me for a while. When using the bigfont/smallfont keys to change between two fonts of the same size (sabvga and ansi for example), the screen wasn't redrawn to reflect the new font. Now it is, and I hope I did it right or KainX will destroy me :-) SVN revision: 3830 --- src/font.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/font.c b/src/font.c index b968c36..0fcfc45 100644 --- a/src/font.c +++ b/src/font.c @@ -561,8 +561,12 @@ change_font(int init, const char *fontname) } /* If the sizes haven't changed, we don't have to update the hints */ - if (fw == TermWin.fwidth && fh == TermWin.fheight) - return; + if (fw == TermWin.fwidth && fh == TermWin.fheight) { + /* but we _do_ need to redraw to show the new font */ + scr_reset(); + scr_touch(); + return; + } TermWin.fwidth = fw; TermWin.fheight = fh;