mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-05-30 08:20:28 -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
|
#endif
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if ( font_width != win_width/term->cols ||
|
if ( font_width * term->cols != win_width ||
|
||||||
font_height != win_height/term->rows) {
|
font_height * term->rows != win_height) {
|
||||||
/* Our only choice at this point is to change the
|
/* Our only choice at this point is to change the
|
||||||
* size of the terminal; Oh well.
|
* size of the terminal; Oh well.
|
||||||
*/
|
*/
|
||||||
@ -5163,6 +5163,10 @@ static void make_full_screen()
|
|||||||
ss.bottom - ss.top,
|
ss.bottom - ss.top,
|
||||||
SWP_FRAMECHANGED);
|
SWP_FRAMECHANGED);
|
||||||
|
|
||||||
|
/* We may have changed size as a result */
|
||||||
|
|
||||||
|
reset_window(0);
|
||||||
|
|
||||||
/* Tick the menu item in the System menu. */
|
/* Tick the menu item in the System menu. */
|
||||||
CheckMenuItem(GetSystemMenu(hwnd, FALSE), IDM_FULLSCREEN,
|
CheckMenuItem(GetSystemMenu(hwnd, FALSE), IDM_FULLSCREEN,
|
||||||
MF_CHECKED);
|
MF_CHECKED);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user