changeset 16336:91846d76268d

(struct frame): New field window_width. (FRAME_WINDOW_WIDTH): Refer to window_width field. (SET_FRAME_WIDTH): Set window_width field as well as width field.
author Richard M. Stallman <rms@gnu.org>
date Wed, 25 Sep 1996 22:41:09 +0000
parents 6cf0a8b5c895
children 65db047f1886
files src/frame.h
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/frame.h	Wed Sep 25 22:39:43 1996 +0000
+++ b/src/frame.h	Wed Sep 25 22:41:09 1996 +0000
@@ -167,6 +167,7 @@
   /* Size of this frame, in units of characters.  */
   EMACS_INT height;
   EMACS_INT width;
+  EMACS_INT window_width;
 
   /* New height and width for pending size change.  0 if no change pending.  */
   int new_height, new_width;
@@ -381,8 +382,8 @@
       : 0)
 #define FRAME_WINDOW_WIDTH_ARG(f, width) \
      ((width) + FRAME_SCROLL_BAR_WIDTH (f))
-#define FRAME_WINDOW_WIDTH(f) ((f)->width + FRAME_SCROLL_BAR_WIDTH (f))
-#define SET_FRAME_WIDTH(f,val) ((f)->width = (val))
+#define FRAME_WINDOW_WIDTH(f) ((f)->window_width)
+#define SET_FRAME_WIDTH(f,val) ((f)->width = (val), (f)->window_width = FRAME_WINDOW_WIDTH_ARG (f, (f)->width))
 #define FRAME_SCROLL_BARS(f) ((f)->scroll_bars)
 #define FRAME_CONDEMNED_SCROLL_BARS(f) ((f)->condemned_scroll_bars)
 #define FRAME_MENU_BAR_ITEMS(f) ((f)->menu_bar_items)