Changeset 4153

Show
Ignore:
Timestamp:
2006年08月31日 21時28分44秒 (2 years ago)
Author:
miyoshi
Message:

* xdisp.c: Use FONT_INFO_FROM_ID instead of
MW32_FONT_INFO_FROM_FONT.

* fontset.h (FONT_INFO_FROM_ID): Call mw32_get_font_info().

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/ChangeLog.Meadow

    r4152 r4153  
     12006-08-31  MIYOSHI Masanori  <miyoshi@meadowy.org> 
     2 
     3        * xdisp.c: Use FONT_INFO_FROM_ID instead of 
     4        MW32_FONT_INFO_FROM_FONT. 
     5 
     6        * fontset.h (FONT_INFO_FROM_ID): Call mw32_get_font_info(). 
     7 
    182006-08-29  MIYOSHI Masanori  <miyoshi@meadowy.org> 
    29 
  • trunk/src/fontset.h

    r4037 r4153  
    237237   structure on frame F.  If ID is invalid, return null.  */ 
    238238 
     239#ifdef MEADOW 
     240#define FONT_INFO_FROM_ID(F, ID) mw32_get_font_info (F, ID) 
     241#else 
    239242#define FONT_INFO_FROM_ID(F, ID)                                        \ 
    240243     (((ID) >= 0 && (ID) < FRAME_X_DISPLAY_INFO ((F))->font_table_size) \ 
    241244      ? (FRAME_X_DISPLAY_INFO ((F))->font_table + (ID))                 \ 
    242245      : 0) 
     246#endif 
    243247 
    244248extern Lisp_Object fontset_name P_ ((int)); 
  • trunk/src/xdisp.c

    r4140 r4153  
    1310513105                   && XFASTINT (w->last_overlay_modified) >= OVERLAY_MODIFF))) 
    1310613106    { 
     13107 
    1310713108      /* If first window line is a continuation line, and window start 
    1310813109         is inside the modified region, but the first change is before 
     
    1879918800      if (charset != CHARSET_ASCII) 
    1880018801        { 
    18801 #ifdef MEADOW 
    18802           struct font_info *font_info = 0; 
    18803           if (face->font) 
    18804             { 
    18805               font_info = MW32_FONT_INFO_FROM_FONT (face->font); 
    18806               rif->encode_char (glyph->u.ch, char2b, font_info, two_byte_p); 
    18807             } 
    18808 #else /* not MEADOW */ 
    1880918802          struct font_info *font_info 
    1881018803            = FONT_INFO_FROM_ID (f, face->font_info_id); 
     
    1881218805            glyph->font_type 
    1881318806              = rif->encode_char (glyph->u.ch, char2b, font_info, two_byte_p); 
    18814 #endif /* not MEADOW */ 
    1881518807        } 
    1881618808    } 
     
    1884718839  s->face = faces[s->gidx]; 
    1884818840  s->font = s->face->font; 
    18849 #ifdef MEADOW 
    18850   if (s->font) 
    18851     s->font_info = MW32_FONT_INFO_FROM_FONT (s->font); 
    18852 #else /* not MEADOW */ 
    1885318841  s->font_info = FONT_INFO_FROM_ID (s->f, s->face->font_info_id); 
    18854 #endif /* not MEADOW */ 
    18855    
     18842 
    1885618843  /* For all glyphs of this composition, starting at the offset 
    1885718844     S->gidx, until we reach the end of the definition or encounter a 
     
    1895918946                                               s->char2b + s->nchars, 
    1896018947                                               &two_byte_p); 
    18961 #endif /* not MEADOW */  
     18948#endif /* not MEADOW */ 
    1896218949      s->two_byte_p = two_byte_p; 
    1896318950      ++s->nchars; 
     
    1897118958 
    1897218959  s->font = s->face->font; 
    18973 #ifdef MEADOW 
    18974   if (s->font) 
    18975     s->font_info = MW32_FONT_INFO_FROM_FONT (s->font); 
    18976 #else /* not MEADOW */ 
    1897718960  s->font_info = FONT_INFO_FROM_ID (s->f, s->face->font_info_id); 
    18978 #endif /* not MEADOW */ 
    1897918961 
    1898018962  /* If the specified font could not be loaded, use the frame's font, 
     
    1899218974                          s->pdx, &s->left_overhang, &s->right_overhang); 
    1899318975#endif 
    18994    
     18976 
    1899518977  /* Adjust base line for subscript/superscript text.  */ 
    1899618978  s->ybase += voffset; 
     
    1904919031  s->face = FACE_FROM_ID (s->f, face_id); 
    1905019032  s->font = s->face->font; 
    19051 #ifdef MEADOW 
    19052   if (s->font) 
    19053     s->font_info = MW32_FONT_INFO_FROM_FONT (s->font); 
    19054 #else /* not MEADOW */ 
    1905519033  s->font_info = FONT_INFO_FROM_ID (s->f, s->face->font_info_id); 
    19056 #endif /* not MEADOW */ 
    1905719034  s->width = glyph->pixel_width; 
    1905819035  s->nchars = 1; 
     
    1910019077      face = get_glyph_face_and_encoding (f, glyph, &char2b, NULL); 
    1910119078      font = face->font; 
    19102 #ifdef MEADOW 
    19103       if (font) 
    19104         font_info = MW32_FONT_INFO_FROM_FONT (font); 
    19105 #else /* not MEADOW */ 
    1910619079      font_info = FONT_INFO_FROM_ID (f, face->font_info_id); 
    19107 #endif /* not MEADOW */ 
    1910819080      if (font  /* ++KFS: Should this be font_info ?  */ 
    1910919081          && (pcm = rif->per_char_metric (font, &char2b, glyph->font_type))) 
     
    1927219244      if (face->font != NULL) 
    1927319245        { 
    19274 #ifdef MEADOW 
    19275           struct font_info *font_info 
    19276             = MW32_FONT_INFO_FROM_FONT (face->font); 
    19277 #else /* not MEADOW */ 
    1927819246          struct font_info *font_info 
    1927919247            = FONT_INFO_FROM_ID (f, face->font_info_id); 
    19280 #endif /* not MEADOW */ 
    1928119248          if (font_info) 
    1928219249            rif->encode_char (c, char2b, font_info, 0); 
     
    2040920376      else 
    2041020377        { 
    20411 #ifdef MEADOW 
    20412           font_info = MW32_FONT_INFO_FROM_FONT (font); 
    20413 #else /* not MEADOW */ 
    2041420378          font_info = FONT_INFO_FROM_ID (it->f, face->font_info_id); 
    20415 #endif /* not MEADOW */ 
    2041620379          boff = font_info->baseline_offset; 
    2041720380          if (font_info->vertical_centering) 
     
    2075620719      else 
    2075720720        { 
    20758 #ifdef MEADOW 
    20759           font_info = MW32_FONT_INFO_FROM_FONT (font); 
    20760 #else /* not MEADOW */ 
    2076120721          font_info = FONT_INFO_FROM_ID (it->f, face->font_info_id); 
    20762 #endif /* not MEADOW */ 
    2076320722          boff = font_info->baseline_offset; 
    2076420723          if (font_info->vertical_centering) 
     
    2084720806                { 
    2084820807                  font_info 
    20849 #ifdef MEADOW 
    20850                     = MW32_FONT_INFO_FROM_FONT (font); 
    20851 #else /* not MEADOW */ 
    2085220808                    = FONT_INFO_FROM_ID (it->f, face->font_info_id); 
    20853 #endif /* not MEADOW */ 
    2085420809                  boff = font_info->baseline_offset; 
    2085520810                  if (font_info->vertical_centering)