Changeset 4155
- Timestamp:
- 09/02/06 02:16:59 (2 years ago)
- Files:
-
- trunk/src/ChangeLog.Meadow (modified) (1 diff)
- trunk/src/dispextern.h (modified) (1 diff)
- trunk/src/mw32term.c (modified) (4 diffs)
- trunk/src/xdisp.c (modified) (11 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/ChangeLog.Meadow
r4154 r4155 1 2006-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 1 17 2006-08-31 MIYOSHI Masanori <miyoshi@meadowy.org> 2 18 trunk/src/dispextern.h
r4152 r4155 1155 1155 unsigned char *pstr; 1156 1156 int nbytes; 1157 int *pdx;1158 1157 #endif 1159 1158 trunk/src/mw32term.c
r4150 r4155 1669 1669 MW32_INVOKE_OUTPUTPROC (s->font, s->hdc, s->pstr, 1670 1670 x, s->ybase - boff, 1671 s->nbytes, s->pdx, &r, 0);1671 s->nbytes, 0, &r, 0); 1672 1672 } 1673 1673 else … … 1675 1675 MW32_INVOKE_OUTPUTPROC (s->font, s->hdc, s->pstr, 1676 1676 x, s->ybase - boff, 1677 s->nbytes, s->pdx, &r, ETO_OPAQUE);1677 s->nbytes, 0, &r, ETO_OPAQUE); 1678 1678 } 1679 1679 } … … 1712 1712 unsigned char *pstr; 1713 1713 RECT r; 1714 int dx = 0;1715 1714 1716 1715 r.left = s->x; … … 1727 1726 x + s->cmp->offsets[s->gidx * 2], 1728 1727 s->ybase - s->cmp->offsets[s->gidx * 2 + 1], 1729 pstr - str, &dx, &r, 0);1728 pstr - str, 0, &r, 0); 1730 1729 } 1731 1730 } trunk/src/xdisp.c
r4154 r4155 18656 18656 init_glyph_string (s, OPTIONAL_HDC (hdc) char2b, 18657 18657 #ifdef MEADOW 18658 pstr, pdx,18658 pstr, 18659 18659 #endif 18660 18660 w, row, area, start, hl) … … 18664 18664 #ifdef MEADOW 18665 18665 unsigned char *pstr; 18666 int *pdx;18667 18666 #endif 18668 18667 struct window *w; … … 18683 18682 #ifdef MEADOW 18684 18683 s->pstr = pstr; 18685 s->pdx = pdx;18686 18684 #endif 18687 18685 s->hl = hl; … … 18924 18922 { 18925 18923 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); 18926 18928 #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 18949 18931 s->two_byte_p = two_byte_p; 18950 18932 ++s->nchars; … … 18969 18951 s->font = FRAME_FONT (s->f); 18970 18952 } 18971 #ifdef MEADOW18972 /* 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 #endif18976 18953 18977 18954 /* Adjust base line for subscript/superscript text. */ … … 19341 19318 /* On W32, silently add local `hdc' variable to argument list of 19342 19319 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) 19345 19322 #else 19346 19323 #define INIT_GLYPH_STRING(s, char2b, w, row, area, start, hl) \ … … 19362 19339 { \ 19363 19340 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); \ 19365 19342 START = fill_stretch_glyph_string (s, row, area, START, END); \ 19366 19343 append_glyph_string (&HEAD, &TAIL, s); \ … … 19382 19359 { \ 19383 19360 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); \ 19385 19362 fill_image_glyph_string (s); \ 19386 19363 append_glyph_string (&HEAD, &TAIL, s); \ … … 19406 19383 XChar2b *char2b; \ 19407 19384 unsigned char *pstr; \ 19408 int *pdx; \19409 19385 \ 19410 19386 c = (row)->glyphs[area][START].u.ch; \ … … 19414 19390 char2b = (XChar2b *) alloca ((END - START) * (sizeof *char2b)); \ 19415 19391 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); \ 19419 19393 append_glyph_string (&HEAD, &TAIL, s); \ 19420 19394 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); \ 19422 19396 } \ 19423 19397 while (0) … … 19463 19437 { \ 19464 19438 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); \ 19466 19440 append_glyph_string (&(HEAD), &(TAIL), s); \ 19467 19441 s->cmp = cmp; \
