changeset 25078:6de9d21f8a24

(EmacsFrameSetCharSize): Don't add XtNborderWidth value to frame width and height.
author Gerd Moellmann <gerd@gnu.org>
date Mon, 26 Jul 1999 21:22:23 +0000
parents 3f9fae091562
children 3a09aae52441
files src/widget.c
diffstat 1 files changed, 5 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/widget.c	Mon Jul 26 20:02:46 1999 +0000
+++ b/src/widget.c	Mon Jul 26 21:22:23 1999 +0000
@@ -924,16 +924,18 @@
   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