summaryrefslogtreecommitdiff
path: root/src/widget.c
diff options
context:
space:
mode:
authorKim F. Storm <storm@cua.dk>2001-12-01 01:24:00 +0000
committerKim F. Storm <storm@cua.dk>2001-12-01 01:24:00 +0000
commit81d8d9bbddec9cdb8e11d40b947aa7f9e850b5ca (patch)
tree6413a6ee82f32fcde7adb76f326b954c40af4481 /src/widget.c
parent4963e65efbecf826fe92522eb1ba39a72446c432 (diff)
downloademacs-81d8d9bbddec9cdb8e11d40b947aa7f9e850b5ca.tar.gz
(set_frame_size): Use x_compute_fringe_widths.
(EmacsFrameSetCharSize): Ditto.
Diffstat (limited to 'src/widget.c')
-rw-r--r--src/widget.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/widget.c b/src/widget.c
index 15dd25f8221..ab4c4f869b5 100644
--- a/src/widget.c
+++ b/src/widget.c
@@ -434,8 +434,7 @@ set_frame_size (ew)
: (FRAME_SCROLL_BAR_COLS (frame)
* FONT_WIDTH (frame->output_data.x->font)));
- frame->output_data.x->fringes_extra
- = FRAME_FRINGE_WIDTH (frame);
+ x_compute_fringe_widths (frame, 0);
change_frame_size (frame, h, w, 1, 0, 0);
char_to_pixel_size (ew, w, h, &pixel_width, &pixel_height);
@@ -912,8 +911,7 @@ EmacsFrameSetCharSize (widget, columns, rows)
? 0
: (FRAME_SCROLL_BAR_COLS (f) * FONT_WIDTH (f->output_data.x->font)));
- f->output_data.x->fringes_extra
- = FRAME_FRINGE_WIDTH (f);
+ x_compute_fringe_widths (f, 0);
char_to_pixel_size (ew, columns, rows, &pixel_width, &pixel_height);