diff options
| author | Kim F. Storm | 2001-12-01 01:24:00 +0000 |
|---|---|---|
| committer | Kim F. Storm | 2001-12-01 01:24:00 +0000 |
| commit | 2d9bd0e7ca693d78a04652646d2d94b015fac784 (patch) | |
| tree | f43a74fa1ebf3fb08ce7f328a41a94a076c3bf25 /src/widget.c | |
| parent | b3ba0aa8a050382e92dc8eb4edc3676707786290 (diff) | |
| download | emacs-2d9bd0e7ca693d78a04652646d2d94b015fac784.tar.gz emacs-2d9bd0e7ca693d78a04652646d2d94b015fac784.zip | |
(set_frame_size): Use x_compute_fringe_widths.
(EmacsFrameSetCharSize): Ditto.
Diffstat (limited to 'src/widget.c')
| -rw-r--r-- | src/widget.c | 6 |
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) | |||
| 434 | : (FRAME_SCROLL_BAR_COLS (frame) | 434 | : (FRAME_SCROLL_BAR_COLS (frame) |
| 435 | * FONT_WIDTH (frame->output_data.x->font))); | 435 | * FONT_WIDTH (frame->output_data.x->font))); |
| 436 | 436 | ||
| 437 | frame->output_data.x->fringes_extra | 437 | x_compute_fringe_widths (frame, 0); |
| 438 | = FRAME_FRINGE_WIDTH (frame); | ||
| 439 | 438 | ||
| 440 | change_frame_size (frame, h, w, 1, 0, 0); | 439 | change_frame_size (frame, h, w, 1, 0, 0); |
| 441 | char_to_pixel_size (ew, w, h, &pixel_width, &pixel_height); | 440 | char_to_pixel_size (ew, w, h, &pixel_width, &pixel_height); |
| @@ -912,8 +911,7 @@ EmacsFrameSetCharSize (widget, columns, rows) | |||
| 912 | ? 0 | 911 | ? 0 |
| 913 | : (FRAME_SCROLL_BAR_COLS (f) * FONT_WIDTH (f->output_data.x->font))); | 912 | : (FRAME_SCROLL_BAR_COLS (f) * FONT_WIDTH (f->output_data.x->font))); |
| 914 | 913 | ||
| 915 | f->output_data.x->fringes_extra | 914 | x_compute_fringe_widths (f, 0); |
| 916 | = FRAME_FRINGE_WIDTH (f); | ||
| 917 | 915 | ||
| 918 | char_to_pixel_size (ew, columns, rows, &pixel_width, &pixel_height); | 916 | char_to_pixel_size (ew, columns, rows, &pixel_width, &pixel_height); |
| 919 | 917 | ||