From 203ae5607eaa362c1501a6c0d0ddc21da6f61bce Mon Sep 17 00:00:00 2001 From: Gerd Moellmann Date: Mon, 26 Jul 1999 21:22:23 +0000 Subject: [PATCH] (EmacsFrameSetCharSize): Don't add XtNborderWidth value to frame width and height. --- src/widget.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/widget.c b/src/widget.c index 1d0cf995177..905c8738c5e 100644 --- a/src/widget.c +++ b/src/widget.c @@ -924,16 +924,18 @@ EmacsFrameSetCharSize (widget, columns, rows) f->output_data.x->flags_areas_extra = 2 * FRAME_FLAGS_AREA_WIDTH (f); + char_to_pixel_size (ew, columns, rows, &pixel_width, &pixel_height); + +#if 0 /* This doesn't seem to be right. The frame gets too wide. --gerd. */ /* Something is really strange here wrt to the border width: Apparently, XtNwidth and XtNheight include the border, so we have to add it here. But the XtNborderWidth set for the widgets has no similarity to what f->output_data.x->border_width is set to. */ - char_to_pixel_size (ew, columns, rows, &pixel_width, &pixel_height); - XtVaGetValues (widget, XtNborderWidth, &border_width, NULL); pixel_height += 2 * border_width; pixel_width += 2 * border_width; - +#endif + /* Manually change the height and width of all our widgets, adjusting each widget by the same increments. */ if (ew->core.width != pixel_width -- 2.39.5