diff options
Diffstat (limited to 'src/frame.c')
| -rw-r--r-- | src/frame.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/frame.c b/src/frame.c index 53ff05965c1..00f25f7e911 100644 --- a/src/frame.c +++ b/src/frame.c | |||
| @@ -509,10 +509,13 @@ adjust_frame_size (struct frame *f, int new_width, int new_height, int inhibit, | |||
| 509 | block_input (); | 509 | block_input (); |
| 510 | 510 | ||
| 511 | #ifdef MSDOS | 511 | #ifdef MSDOS |
| 512 | /* We only can set screen dimensions to certain values supported | 512 | /* We only can set screen dimensions to certain values supported by |
| 513 | by our video hardware. Try to find the smallest size greater | 513 | our video hardware. Try to find the smallest size greater or |
| 514 | or equal to the requested dimensions. */ | 514 | equal to the requested dimensions, while accounting for the fact |
| 515 | dos_set_window_size (&new_lines, &new_cols); | 515 | that the menu-bar lines are not counted in the frame height. */ |
| 516 | int dos_new_lines = new_lines + FRAME_TOP_MARGIN (f); | ||
| 517 | dos_set_window_size (&dos_new_lines, &new_cols); | ||
| 518 | new_lines = dos_new_lines - FRAME_TOP_MARGIN (f); | ||
| 516 | #endif | 519 | #endif |
| 517 | 520 | ||
| 518 | if (new_windows_width != old_windows_width) | 521 | if (new_windows_width != old_windows_width) |