diff options
author | Karl Heuer <kwzh@gnu.org> | 1994-09-28 00:58:15 +0000 |
---|---|---|
committer | Karl Heuer <kwzh@gnu.org> | 1994-09-28 00:58:15 +0000 |
commit | 02a162bf1603e6b395142ad4d18683dfdf958d76 (patch) | |
tree | 4be541b53d1bed3a916c9661e13525688b5a13b6 /src/widget.c | |
parent | bf92a755fa7f3dd4f4cc0e890454af6eb1a810fc (diff) | |
download | emacs-02a162bf1603e6b395142ad4d18683dfdf958d76.tar.gz |
(set_frame_size, EmacsFrameSetCharSize): Use new width formula.
Diffstat (limited to 'src/widget.c')
-rw-r--r-- | src/widget.c | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/src/widget.c b/src/widget.c index 168f75550fc..fd213aa337c 100644 --- a/src/widget.c +++ b/src/widget.c @@ -423,10 +423,12 @@ set_frame_size (ew) /* Take into account the size of the scrollbar */ frame->display.x->vertical_scroll_bar_extra - = (FRAME_HAS_VERTICAL_SCROLL_BARS (frame) + = (!FRAME_HAS_VERTICAL_SCROLL_BARS (frame) + ? 0 + : FRAME_SCROLL_BAR_PIXEL_WIDTH (frame) > 0 ? FRAME_SCROLL_BAR_PIXEL_WIDTH (frame) - : 0); - + : (FRAME_SCROLL_BAR_COLS (frame) + * FONT_WIDTH (frame->display.x->font))); change_frame_size (frame, h, w, 1, 0); char_to_pixel_size (ew, w, h, &pixel_width, &pixel_height); @@ -883,9 +885,12 @@ EmacsFrameSetCharSize (widget, columns, rows) check_frame_size (f, &rows, &columns); f->display.x->vertical_scroll_bar_extra - = (FRAME_HAS_VERTICAL_SCROLL_BARS (f) + = (!FRAME_HAS_VERTICAL_SCROLL_BARS (f) + ? 0 + : FRAME_SCROLL_BAR_PIXEL_WIDTH (f) > 0 ? FRAME_SCROLL_BAR_PIXEL_WIDTH (f) - : 0); + : (FRAME_SCROLL_BAR_COLS (f) * FONT_WIDTH (f->display.x->font))); + char_to_pixel_size (ew, columns, rows, &pixel_width, &pixel_height); /* Recompute the entire geometry management. */ |