mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-05-28 23:34:49 -05:00
Update size when going from maximised to full screen.
[originally from svn r6618]
This commit is contained in:
parent
5d13c986b1
commit
806c2b73ce
@ -1621,8 +1621,8 @@ static void reset_window(int reinit) {
|
||||
#endif
|
||||
}
|
||||
} else {
|
||||
if ( font_width != win_width/term->cols ||
|
||||
font_height != win_height/term->rows) {
|
||||
if ( font_width * term->cols != win_width ||
|
||||
font_height * term->rows != win_height) {
|
||||
/* Our only choice at this point is to change the
|
||||
* size of the terminal; Oh well.
|
||||
*/
|
||||
@ -5163,6 +5163,10 @@ static void make_full_screen()
|
||||
ss.bottom - ss.top,
|
||||
SWP_FRAMECHANGED);
|
||||
|
||||
/* We may have changed size as a result */
|
||||
|
||||
reset_window(0);
|
||||
|
||||
/* Tick the menu item in the System menu. */
|
||||
CheckMenuItem(GetSystemMenu(hwnd, FALSE), IDM_FULLSCREEN,
|
||||
MF_CHECKED);
|
||||
|
Loading…
x
Reference in New Issue
Block a user