Changeset 4155

Show
Ignore:
Timestamp:
09/02/06 02:16:59 (2 years ago)
Author:
miyoshi
Message:

* xdisp.c (init_glyph_string): Removed argument `pdx'.
Don't call MW32_INVOKE_LAYOUTPROC.
(INIT_GLYPH_STRING): Removed argument `pdx'.
(BUILD_STRETCH_GLYPH_STRING): Ditto.
(BUILD_IMAGE_GLYPH_STRING): Ditto.
(BUILD_CHAR_GLYPH_STRINGS): Ditto.
(BUILD_COMPOSITE_GLYPH_STRING): Ditto.

* mw32term.c (mw32_draw_glyph_string_foreground): Don't use
horizontal offsets of the glyph string.
(mw32_draw_composite_glyph_string_foreground): Ditto.

* dispextern.h (struct glyph_string): Removed member `pdx'.

Files:

Legend:

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

    r4154 r4155  
     12006-09-02  MIYOSHI Masanori  <miyoshi@meadowy.org> 
     2 
     3        * xdisp.c (init_glyph_string): Removed argument `pdx'. 
     4        Don't call MW32_INVOKE_LAYOUTPROC. 
     5        (INIT_GLYPH_STRING): Removed argument `pdx'. 
     6        (BUILD_STRETCH_GLYPH_STRING): Ditto. 
     7        (BUILD_IMAGE_GLYPH_STRING): Ditto. 
     8        (BUILD_CHAR_GLYPH_STRINGS): Ditto. 
     9        (BUILD_COMPOSITE_GLYPH_STRING): Ditto. 
     10 
     11        * mw32term.c (mw32_draw_glyph_string_foreground): Don't use 
     12        horizontal offsets of the glyph string. 
     13        (mw32_draw_composite_glyph_string_foreground): Ditto. 
     14 
     15        * dispextern.h (struct glyph_string): Removed member `pdx'. 
     16 
    1172006-08-31  MIYOSHI Masanori  <miyoshi@meadowy.org> 
    218 
  • trunk/src/dispextern.h

    r4152 r4155  
    11551155  unsigned char *pstr; 
    11561156  int nbytes; 
    1157   int *pdx; 
    11581157#endif 
    11591158 
  • trunk/src/mw32term.c

    r4150 r4155  
    16691669          MW32_INVOKE_OUTPUTPROC (s->font, s->hdc, s->pstr, 
    16701670                                  x, s->ybase - boff, 
    1671                                   s->nbytes, s->pdx, &r, 0); 
     1671                                  s->nbytes, 0, &r, 0); 
    16721672        } 
    16731673      else 
     
    16751675          MW32_INVOKE_OUTPUTPROC (s->font, s->hdc, s->pstr, 
    16761676                                  x, s->ybase - boff, 
    1677                                   s->nbytes, s->pdx, &r, ETO_OPAQUE); 
     1677                                  s->nbytes, 0, &r, ETO_OPAQUE); 
    16781678        } 
    16791679    } 
     
    17121712      unsigned char *pstr; 
    17131713      RECT r; 
    1714       int dx = 0; 
    17151714 
    17161715      r.left = s->x; 
     
    17271726                                  x + s->cmp->offsets[s->gidx * 2], 
    17281727                                  s->ybase - s->cmp->offsets[s->gidx * 2 + 1], 
    1729                                   pstr - str, &dx, &r, 0); 
     1728                                  pstr - str, 0, &r, 0); 
    17301729        } 
    17311730    } 
  • trunk/src/xdisp.c

    r4154 r4155  
    1865618656init_glyph_string (s, OPTIONAL_HDC (hdc) char2b, 
    1865718657#ifdef MEADOW 
    18658                    pstr, pdx, 
     18658                   pstr, 
    1865918659#endif 
    1866018660                   w, row, area, start, hl) 
     
    1866418664#ifdef MEADOW 
    1866518665     unsigned char *pstr; 
    18666      int *pdx; 
    1866718666#endif 
    1866818667     struct window *w; 
     
    1868318682#ifdef MEADOW 
    1868418683  s->pstr = pstr; 
    18685   s->pdx = pdx; 
    1868618684#endif 
    1868718685  s->hl = hl; 
     
    1892418922    { 
    1892518923      int two_byte_p; 
     18924 
     18925      s->face = get_glyph_face_and_encoding (s->f, glyph, 
     18926                                             s->char2b + s->nchars, 
     18927                                             &two_byte_p); 
    1892618928#ifdef MEADOW 
    18927       XChar2b fontcp; 
    18928       int i; 
    18929  
    18930       s->face = get_glyph_face_and_encoding (s->f, glyph, 
    18931                                              &fontcp, 
    18932                                              &two_byte_p); 
    18933       s->char2b[s->nchars] = fontcp; 
    18934       i = pstr - s->pstr; 
    18935       s->pdx[i] = glyph->pixel_width; 
    18936  
    18937       /* Strip off extra width of a box line */ 
    18938       if (s->face->box != FACE_NO_BOX 
    18939           && s->first_glyph->left_box_line_p 
    18940           && i == 0) 
    18941         s->pdx[i] -= abs (s->face->box_line_width); 
    18942  
    18943       SERIALIZE_FONTCP (pstr, fontcp); 
    18944 #else /* not MEADOW */ 
    18945       s->face = get_glyph_face_and_encoding (s->f, glyph, 
    18946                                                s->char2b + s->nchars, 
    18947                                                &two_byte_p); 
    18948 #endif /* not MEADOW */ 
     18929      SERIALIZE_FONTCP (pstr, s->char2b[s->nchars]); 
     18930#endif 
    1894918931      s->two_byte_p = two_byte_p; 
    1895018932      ++s->nchars; 
     
    1896918951      s->font = FRAME_FONT (s->f); 
    1897018952    } 
    18971 #ifdef MEADOW 
    18972   /* MW32: setup layout info. */ 
    18973   MW32_INVOKE_LAYOUTPROC (s->font, s->hdc, s->pstr, s->nbytes, s->width, 
    18974                           s->pdx, &s->left_overhang, &s->right_overhang); 
    18975 #endif 
    1897618953 
    1897718954  /* Adjust base line for subscript/superscript text.  */ 
     
    1934119318/* On W32, silently add local `hdc' variable to argument list of 
    1934219319   init_glyph_string.  */ 
    19343 #define INIT_GLYPH_STRING(s, char2b, pstr, pdx, w, row, area, start, hl) \ 
    19344   init_glyph_string (s, hdc, char2b, pstr, pdx, w, row, area, start, hl) 
     19320#define INIT_GLYPH_STRING(s, char2b, pstr, w, row, area, start, hl) \ 
     19321  init_glyph_string (s, hdc, char2b, pstr, w, row, area, start, hl) 
    1934519322#else 
    1934619323#define INIT_GLYPH_STRING(s, char2b, w, row, area, start, hl) \ 
     
    1936219339       {                                                                    \ 
    1936319340         s = (struct glyph_string *) alloca (sizeof *s);                    \ 
    19364          INIT_GLYPH_STRING (s, NULL, NULL, NULL, w, row, area, START, HL);  \ 
     19341         INIT_GLYPH_STRING (s, NULL, NULL, w, row, area, START, HL);       \ 
    1936519342         START = fill_stretch_glyph_string (s, row, area, START, END);      \ 
    1936619343         append_glyph_string (&HEAD, &TAIL, s);                             \ 
     
    1938219359       {                                                                \ 
    1938319360         s = (struct glyph_string *) alloca (sizeof *s);                \ 
    19384          INIT_GLYPH_STRING (s, NULL, NULL, NULL, w, row, area, START, HL);
     19361         INIT_GLYPH_STRING (s, NULL, NULL, w, row, area, START, HL);   
    1938519362         fill_image_glyph_string (s);                                   \ 
    1938619363         append_glyph_string (&HEAD, &TAIL, s);                         \ 
     
    1940619383         XChar2b *char2b;                                                  \ 
    1940719384         unsigned char *pstr;                                              \ 
    19408          int *pdx;                                                         \ 
    1940919385                                                                           \ 
    1941019386         c = (row)->glyphs[area][START].u.ch;                              \ 
     
    1941419390         char2b = (XChar2b *) alloca ((END - START) * (sizeof *char2b));   \ 
    1941519391         pstr = (unsigned char*) alloca ((END - START) * MAXBYTES1FCP);    \ 
    19416          pdx = (int*) alloca ((END - START) * sizeof (int) * MAXBYTES1FCP);\ 
    19417          memset (pdx, 0, ((END - START) * sizeof (int) * MAXBYTES1FCP));   \ 
    19418          INIT_GLYPH_STRING (s, char2b, pstr, pdx, w, row, area, START, HL);\ 
     19392         INIT_GLYPH_STRING (s, char2b, pstr, w, row, area, START, HL);     \ 
    1941919393         append_glyph_string (&HEAD, &TAIL, s);                            \ 
    1942019394         s->x = (X);                                                       \ 
    19421          START = fill_glyph_string (s, face_id, START, END, overlaps);   
     19395         START = fill_glyph_string (s, face_id, START, END, overlaps);    
    1942219396       }                                                                   \ 
    1942319397     while (0) 
     
    1946319437      {                                                                   \ 
    1946419438        s = (struct glyph_string *) alloca (sizeof *s);                   \ 
    19465         INIT_GLYPH_STRING (s, char2b + n, NULL, NULL, w, row, area, START, HL); \ 
     19439        INIT_GLYPH_STRING (s, char2b + n, NULL, w, row, area, START, HL); \ 
    1946619440        append_glyph_string (&(HEAD), &(TAIL), s);                        \ 
    1946719441        s->cmp = cmp;                                                     \