Commit 2d9bd0e7 authored by Kim F. Storm's avatar Kim F. Storm

(set_frame_size): Use x_compute_fringe_widths.

(EmacsFrameSetCharSize): Ditto.
parent b3ba0aa8
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment