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:
parent
90a1716cc1
commit
4f9e3556d7
|
@ -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 the sizes haven't changed, we don't have to update the hints */
|
||||||
if (fw == TermWin.fwidth && fh == TermWin.fheight)
|
if (fw == TermWin.fwidth && fh == TermWin.fheight) {
|
||||||
return;
|
/* but we _do_ need to redraw to show the new font */
|
||||||
|
scr_reset();
|
||||||
|
scr_touch();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
TermWin.fwidth = fw;
|
TermWin.fwidth = fw;
|
||||||
TermWin.fheight = fh;
|
TermWin.fheight = fh;
|
||||||
|
|
Loading…
Reference in New Issue