diff options
Diffstat (limited to 'src/window.c')
| -rw-r--r-- | src/window.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/window.c b/src/window.c index 3cfb6fce239..77a43b739ce 100644 --- a/src/window.c +++ b/src/window.c | |||
| @@ -4064,9 +4064,11 @@ values. */) | |||
| 4064 | } | 4064 | } |
| 4065 | 4065 | ||
| 4066 | 4066 | ||
| 4067 | /* Resize frame F's windows when number of lines of F is set to SIZE. | 4067 | /* Resize frame F's windows when F's width or height is set to SIZE. |
| 4068 | HORFLAG means resize windows when number of columns of F is set to | 4068 | If HORFLAG is zero, F's width was set to SIZE, otherwise its height |
| 4069 | SIZE. PIXELWISE means to interpret SIZE as pixels. */ | 4069 | was set. SIZE is interpreted in F's canonical character units |
| 4070 | (a.k.a. "columns" or "lines"), unless PIXELWISE is non-zero, which | ||
| 4071 | means to interpret SIZE in pixel units. */ | ||
| 4070 | void | 4072 | void |
| 4071 | resize_frame_windows (struct frame *f, int size, bool horflag, bool pixelwise) | 4073 | resize_frame_windows (struct frame *f, int size, bool horflag, bool pixelwise) |
| 4072 | { | 4074 | { |
| @@ -4167,7 +4169,7 @@ resize_frame_windows (struct frame *f, int size, bool horflag, bool pixelwise) | |||
| 4167 | m = XWINDOW (mini); | 4169 | m = XWINDOW (mini); |
| 4168 | if (horflag) | 4170 | if (horflag) |
| 4169 | { | 4171 | { |
| 4170 | m->total_cols = size; | 4172 | m->total_cols = new_size; |
| 4171 | m->pixel_width = new_pixel_size; | 4173 | m->pixel_width = new_pixel_size; |
| 4172 | } | 4174 | } |
| 4173 | else | 4175 | else |