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
This commit is contained in:
Tom Gilbert 2000-11-09 22:48:22 +00:00
parent 90a1716cc1
commit 4f9e3556d7
1 changed files with 6 additions and 2 deletions

View File

@ -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;