emacs-diffs
[Top][All Lists]
Advanced

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

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


From: YAMAMOTO Mitsuharu
Subject: [Emacs-diffs] Changes to emacs/src/macterm.h
Date: Fri, 07 Oct 2005 22:28:37 -0400

Index: emacs/src/macterm.h
diff -c emacs/src/macterm.h:1.27 emacs/src/macterm.h:1.28
*** emacs/src/macterm.h:1.27    Wed Aug 31 08:35:56 2005
--- emacs/src/macterm.h Sat Oct  8 02:28:37 2005
***************
*** 39,46 ****
  #define BLACK_PIX_DEFAULT(f) RGB_TO_ULONG(0,0,0)
  #define WHITE_PIX_DEFAULT(f) RGB_TO_ULONG(255,255,255)
  
! #define FONT_WIDTH(f)   ((f)->max_bounds.width)
! #define FONT_HEIGHT(f)  ((f)->ascent + (f)->descent)
  #define FONT_BASE(f)    ((f)->ascent)
  #define FONT_DESCENT(f) ((f)->descent)
  
--- 39,46 ----
  #define BLACK_PIX_DEFAULT(f) RGB_TO_ULONG(0,0,0)
  #define WHITE_PIX_DEFAULT(f) RGB_TO_ULONG(255,255,255)
  
! #define FONT_WIDTH(f) ((f)->max_bounds.width)
! #define FONT_HEIGHT(f)        ((f)->ascent + (f)->descent)
  #define FONT_BASE(f)    ((f)->ascent)
  #define FONT_DESCENT(f) ((f)->descent)
  
***************
*** 82,97 ****
    /* Whether the screen supports color */ 
    int color_p;
  
- #if 0
-   /* Number of bits per pixel on this screen.  */
-   int n_cbits;
- #endif
- 
    /* Dimensions of this screen.  */
    int height, width;
- #if 0
-   int height_in,width_in;
- #endif
  
    /* Mask of things that cause the mouse to be grabbed.  */
    int grabbed;
--- 82,89 ----
***************
*** 111,143 ****
    /* Resource data base */
    XrmDatabase xrdb;
  
- #if 0
-   /* color palette information.  */
-   int has_palette;
-   struct w32_palette_entry * color_list;
-   unsigned num_colors;
-   HPALETTE palette;
- 
-   /* deferred action flags checked when starting frame update.  */
-   int regen_palette;
- 
-   /* Keystroke that has been faked by Emacs and will be ignored when
-      received; value is reset after key is received.  */
-   int faked_key;
- 
- #endif
- 
    /* A table of all the fonts we have already loaded.  */
    struct font_info *font_table;
  
    /* The current capacity of font_table.  */
    int font_table_size;
  
-   /* The number of fonts actually stored in the font table.
-      font_table[n] is used and valid iff 0 <= n < n_fonts. 0 <=
-      n_fonts <= font_table_size. and font_table[i].name != 0. */
-   int n_fonts;
- 
    /* Minimum width over all characters in all fonts in font_table.  */
    int smallest_char_width;
  
--- 103,114 ----
***************
*** 148,154 ****
    GC scratch_cursor_gc;
  
    /* These variables describe the range of text currently shown in its
!      mouse-face, together with the window they apply to. As long as
       the mouse stays within this range, we need not redraw anything on
       its account.  Rows and columns are glyph matrix positions in
       MOUSE_FACE_WINDOW.  */
--- 119,125 ----
    GC scratch_cursor_gc;
  
    /* These variables describe the range of text currently shown in its
!      mouse-face, together with the window they apply to.  As long as
       the mouse stays within this range, we need not redraw anything on
       its account.  Rows and columns are glyph matrix positions in
       MOUSE_FACE_WINDOW.  */
***************
*** 168,174 ****
    /* FRAME and X, Y position of mouse when last checked for
       highlighting.  X and Y can be negative or out of range for the frame.  */
    struct frame *mouse_face_mouse_frame;
- 
    int mouse_face_mouse_x, mouse_face_mouse_y;
  
    /* Nonzero means defer mouse-motion highlighting.  */
--- 139,144 ----
***************
*** 181,186 ****
--- 151,161 ----
  
    char *mac_id_name;
  
+   /* The number of fonts actually stored in the font table.
+      font_table[n] is used and valid iff 0 <= n < n_fonts.  0 <=
+      n_fonts <= font_table_size and font_table[i].name != 0.  */
+   int n_fonts;
+ 
    /* Pointer to bitmap records.  */
    struct mac_bitmap_record *bitmaps;
  
***************
*** 237,243 ****
  extern struct x_display_info *x_display_info_for_display P_ ((Display *));
  extern struct x_display_info *x_display_info_for_name P_ ((Lisp_Object));
  
! extern struct mac_display_info *mac_term_init ();
  
  extern Lisp_Object x_list_fonts P_ ((struct frame *, Lisp_Object, int, int));
  extern struct font_info *x_get_font_info P_ ((struct frame *f, int));
--- 212,218 ----
  extern struct x_display_info *x_display_info_for_display P_ ((Display *));
  extern struct x_display_info *x_display_info_for_name P_ ((Lisp_Object));
  
! extern struct mac_display_info *mac_term_init P_ ((Lisp_Object, char *, char 
*));
  
  extern Lisp_Object x_list_fonts P_ ((struct frame *, Lisp_Object, int, int));
  extern struct font_info *x_get_font_info P_ ((struct frame *f, int));
***************
*** 262,294 ****
    /* Menubar "widget" handle.  */
    int menubar_widget;
  
-   Window mWP;                 /* pointer to QuickDraw window */
    FRAME_PTR mFP;              /* points back to the frame struct */
  
- #if 0
-   int mNumCols;                       /* number of characters per column */
-   int mNumRows;                       /* number of characters per row */
-   int mLineHeight;            /* height of one line of text in pixels */
-   int mCharWidth;             /* width of one character in pixels */
-   int mHomeX;                 /* X pixel coordinate of lower left
-                                  corner of character at (0, 0) */
-   int mHomeY;                 /* Y pixel coordinate of lower left
-                                  corner of character at (0, 0) */
-   int mHighlight;             /* current highlight state (0 = off). */
-   int mTermWinSize;           /* num of lines from top of window
-                                  affected by ins_del_lines; set by
-                                  set_terminal_window. */
- #endif /* 0 */
- 
- #if 0
-   /* stuffs used by xfaces.c */
-   struct face **param_faces;
-   int n_param_faces;
-   struct face **computed_faces;
-   int n_computed_faces;
-   int size_computed_faces;
- #endif
- 
    /* Here are the Graphics Contexts for the default font.  */
    GC normal_gc;                               /* Normal video */
    GC reverse_gc;                      /* Reverse video */
--- 237,244 ----
***************
*** 322,327 ****
--- 272,278 ----
    unsigned long mouse_pixel;
    unsigned long cursor_foreground_pixel;
  
+ #if 0
    /* Foreground color for scroll bars.  A value of -1 means use the
       default (black for non-toolkit scroll bars).  */
    unsigned long scroll_bar_foreground_pixel;
***************
*** 330,335 ****
--- 281,287 ----
       default (background color of the frame for non-toolkit scroll
       bars).  */
    unsigned long scroll_bar_background_pixel;
+ #endif
  
    /* Descriptor for the cursor in use for this window.  */
    Cursor text_cursor;
***************
*** 357,366 ****
    ControlRef hourglass_control;
  #endif
  
- #if 0
-   DWORD dwStyle;
- #endif
- 
    /* This is the Emacs structure for the display this frame is on.  */
    /* struct w32_display_info *display_info; */
  
--- 309,314 ----
***************
*** 377,386 ****
    /* Nonzero means a menu command is being processed.  */
    char menu_command_in_progress;
  
-   /* Nonzero means menubar is about to become active, but should be
-      brought up to date first.  */
-   volatile char pending_menu_activation;
- 
    /* Relief GCs, colors etc.  */
    struct relief
    {
--- 325,330 ----
***************
*** 404,411 ****
  #define FRAME_X_OUTPUT(f) ((f)->output_data.mac)
  
  /* Return the Mac window used for displaying data in frame F.  */
! #define FRAME_MAC_WINDOW(f) ((f)->output_data.mac->mWP)
! #define FRAME_X_WINDOW(f) ((f)->output_data.mac->mWP)
  
  #define FRAME_FOREGROUND_PIXEL(f) ((f)->output_data.x->foreground_pixel)
  #define FRAME_BACKGROUND_PIXEL(f) ((f)->output_data.x->background_pixel)
--- 348,355 ----
  #define FRAME_X_OUTPUT(f) ((f)->output_data.mac)
  
  /* Return the Mac window used for displaying data in frame F.  */
! #define FRAME_MAC_WINDOW(f) ((f)->output_data.mac->window_desc)
! #define FRAME_X_WINDOW(f) ((f)->output_data.mac->window_desc)
  
  #define FRAME_FOREGROUND_PIXEL(f) ((f)->output_data.x->foreground_pixel)
  #define FRAME_BACKGROUND_PIXEL(f) ((f)->output_data.x->background_pixel)
***************
*** 531,537 ****
  
  /* Return the inside width of a vertical scroll bar, given the outside
     width.  */
! #define VERTICAL_SCROLL_BAR_INSIDE_WIDTH(f,width) \
    ((width) \
     - VERTICAL_SCROLL_BAR_LEFT_BORDER \
     - VERTICAL_SCROLL_BAR_RIGHT_BORDER \
--- 475,481 ----
  
  /* Return the inside width of a vertical scroll bar, given the outside
     width.  */
! #define VERTICAL_SCROLL_BAR_INSIDE_WIDTH(f, width) \
    ((width) \
     - VERTICAL_SCROLL_BAR_LEFT_BORDER \
     - VERTICAL_SCROLL_BAR_RIGHT_BORDER \




reply via email to

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