emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] Changes to emacs/src/xterm.h


From: Kim F. Storm
Subject: [Emacs-diffs] Changes to emacs/src/xterm.h
Date: Fri, 30 Nov 2001 20:16:32 -0500

Index: emacs/src/xterm.h
diff -c emacs/src/xterm.h:1.123 emacs/src/xterm.h:1.124
*** emacs/src/xterm.h:1.123     Fri Nov 16 17:52:53 2001
--- emacs/src/xterm.h   Fri Nov 30 20:16:32 2001
***************
*** 537,543 ****
    /* The extra width currently allotted for the areas in which
       truncation marks, continuation marks, and overlay arrows are
       displayed.  */
!   int fringes_extra;
  
    /* This is the gravity value for the specified window position.  */
    int win_gravity;
--- 537,544 ----
    /* The extra width currently allotted for the areas in which
       truncation marks, continuation marks, and overlay arrows are
       displayed.  */
!   int left_fringe_width, right_fringe_width;
!   int fringe_cols, fringes_extra;
  
    /* This is the gravity value for the specified window position.  */
    int win_gravity;
***************
*** 661,698 ****
  #define FRAME_X_IMAGE_CACHE(F) FRAME_X_DISPLAY_INFO ((F))->image_cache
  
  
- /* Pixel width of the fringe bitmaps drawn to indicate truncation,
-    continuation etc.  */
- 
- #define FRAME_FRINGE_BITMAP_WIDTH(f)  8
- #define FRAME_FRINGE_BITMAP_HEIGHT(f) 8
- 
  /* Total width of fringes reserved for drawing truncation bitmaps,
     continuation bitmaps and alike.  The width is in canonical char
     units of the frame.  This must currently be the case because window
     sizes aren't pixel values.  If it weren't the case, we wouldn't be
     able to split windows horizontally nicely.  */
  
! #define FRAME_X_FRINGE_COLS(F)                                        \
!      ((2 * FRAME_FRINGE_BITMAP_WIDTH ((F)) + CANON_X_UNIT ((F)) - 1)  \
!       / CANON_X_UNIT ((F)))
  
  /* Total width of fringes in pixels.  */
- 
- #define FRAME_X_FRINGE_WIDTH(F) \
-      (FRAME_X_FRINGE_COLS ((F)) * CANON_X_UNIT ((F)))
- 
- /* Pixel-width of the left fringe.  */
  
! #define FRAME_X_LEFT_FRINGE_WIDTH(F) \
!      (FRAME_X_FRINGE_WIDTH (F) / 2)
  
! /* Pixel-width of the right fringe.  Note that we are doing
!    integer arithmetic here, so don't loose a pixel if the total
!    width is an odd number.  */
  
! #define FRAME_X_RIGHT_FRINGE_WIDTH(F)         \
!      (FRAME_X_FRINGE_WIDTH (F) - FRAME_X_FRINGE_WIDTH (F) / 2)
  
  
  
--- 662,683 ----
  #define FRAME_X_IMAGE_CACHE(F) FRAME_X_DISPLAY_INFO ((F))->image_cache
  
  
  /* Total width of fringes reserved for drawing truncation bitmaps,
     continuation bitmaps and alike.  The width is in canonical char
     units of the frame.  This must currently be the case because window
     sizes aren't pixel values.  If it weren't the case, we wouldn't be
     able to split windows horizontally nicely.  */
  
! #define FRAME_X_FRINGE_COLS(F)        ((F)->output_data.x->fringe_cols)
  
  /* Total width of fringes in pixels.  */
  
! #define FRAME_X_FRINGE_WIDTH(F) ((F)->output_data.x->fringes_extra)
  
! /* Pixel-width of the left and right fringe.  */
  
! #define FRAME_X_LEFT_FRINGE_WIDTH(F) ((F)->output_data.x->left_fringe_width)
! #define FRAME_X_RIGHT_FRINGE_WIDTH(F) ((F)->output_data.x->right_fringe_width)
  
  
  
***************
*** 981,986 ****
--- 966,972 ----
  extern void x_uncatch_errors P_ ((Display *, int));
  extern Lisp_Object x_new_font P_ ((struct frame *, char *));
  extern Lisp_Object x_new_fontset P_ ((struct frame *, char *));
+ extern void x_compute_fringe_widths P_ ((struct frame *, int));
  extern void x_set_offset P_ ((struct frame *, int, int, int));
  extern void x_set_window_size P_ ((struct frame *, int, int, int));
  extern void x_set_mouse_position P_ ((struct frame *, int, int));



reply via email to

[Prev in Thread] Current Thread [Next in Thread]