projects
/
u
/
mdw
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Sprinkle some header comments in various files in an attempt to explain what
[u/mdw/putty]
/
windows
/
window.c
diff --git
a/windows/window.c
b/windows/window.c
index
1e92550
..
e997ff0
100644
(file)
--- a/
windows/window.c
+++ b/
windows/window.c
@@
-1,3
+1,8
@@
+/*
+ * window.c - the PuTTY(tel) main program, which runs a PuTTY terminal
+ * emulator and backend in a window.
+ */
+
#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
@@
-1621,8
+1626,8
@@
static void reset_window(int reinit) {
#endif
}
} else {
#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.
*/
/* Our only choice at this point is to change the
* size of the terminal; Oh well.
*/
@@
-5163,6
+5168,10
@@
static void make_full_screen()
ss.bottom - ss.top,
SWP_FRAMECHANGED);
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);
/* Tick the menu item in the System menu. */
CheckMenuItem(GetSystemMenu(hwnd, FALSE), IDM_FULLSCREEN,
MF_CHECKED);