diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/w32fns.c | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/src/w32fns.c b/src/w32fns.c index a3f5d8bf0ac..6ab167a3240 100644 --- a/src/w32fns.c +++ b/src/w32fns.c | |||
| @@ -2472,6 +2472,36 @@ x_set_visibility (f, value, oldval) | |||
| 2472 | Fmake_frame_visible (frame); | 2472 | Fmake_frame_visible (frame); |
| 2473 | } | 2473 | } |
| 2474 | 2474 | ||
| 2475 | |||
| 2476 | /* Change window heights in windows rooted in WINDOW by N lines. */ | ||
| 2477 | |||
| 2478 | static void | ||
| 2479 | x_change_window_heights (window, n) | ||
| 2480 | Lisp_Object window; | ||
| 2481 | int n; | ||
| 2482 | { | ||
| 2483 | struct window *w = XWINDOW (window); | ||
| 2484 | |||
| 2485 | XSETFASTINT (w->top, XFASTINT (w->top) + n); | ||
| 2486 | XSETFASTINT (w->height, XFASTINT (w->height) - n); | ||
| 2487 | |||
| 2488 | if (INTEGERP (w->orig_top)) | ||
| 2489 | XSETFASTINT (w->orig_top, XFASTINT (w->orig_top) + n); | ||
| 2490 | if (INTEGERP (w->orig_height)) | ||
| 2491 | XSETFASTINT (w->orig_height, XFASTINT (w->orig_height) - n); | ||
| 2492 | |||
| 2493 | /* Handle just the top child in a vertical split. */ | ||
| 2494 | if (!NILP (w->vchild)) | ||
| 2495 | x_change_window_heights (w->vchild, n); | ||
| 2496 | |||
| 2497 | /* Adjust all children in a horizontal split. */ | ||
| 2498 | for (window = w->hchild; !NILP (window); window = w->next) | ||
| 2499 | { | ||
| 2500 | w = XWINDOW (window); | ||
| 2501 | x_change_window_heights (window, n); | ||
| 2502 | } | ||
| 2503 | } | ||
| 2504 | |||
| 2475 | void | 2505 | void |
| 2476 | x_set_menu_bar_lines (f, value, oldval) | 2506 | x_set_menu_bar_lines (f, value, oldval) |
| 2477 | struct frame *f; | 2507 | struct frame *f; |