diff options
| author | Kenichi Handa | 2007-12-01 02:41:05 +0000 |
|---|---|---|
| committer | Kenichi Handa | 2007-12-01 02:41:05 +0000 |
| commit | f08696c668bb1514996bb3245ca357baad63fe64 (patch) | |
| tree | b86d92fb0f404b9b3b7a06abb4a003a2aff5ee6c /src | |
| parent | 0c16681f7673779995f5e1cf39c388ed0398d562 (diff) | |
| download | emacs-f08696c668bb1514996bb3245ca357baad63fe64.tar.gz emacs-f08696c668bb1514996bb3245ca357baad63fe64.zip | |
(handle_composition_prop): Adjusted for the change of
lispy gstring. Call a function for auto-composition with the
third arg it->window.
(fill_composite_glyph_string): Adjusted for the change of lispy
string.
(x_produce_glyphs): Adjusted for the change of
font_prepare_compositionl.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xdisp.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/xdisp.c b/src/xdisp.c index 96244877a2e..0470cbd2ff3 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -4631,7 +4631,7 @@ handle_auto_composed_prop (it) | |||
| 4631 | 4631 | ||
| 4632 | it->c = FETCH_CHAR (pos_byte); | 4632 | it->c = FETCH_CHAR (pos_byte); |
| 4633 | } | 4633 | } |
| 4634 | args[3] = font_at (it->c, this_pos, face, it->w, it->string); | 4634 | args[3] = it->window; |
| 4635 | } | 4635 | } |
| 4636 | else | 4636 | else |
| 4637 | #endif /* USE_FONT_BACKEND */ | 4637 | #endif /* USE_FONT_BACKEND */ |
| @@ -4734,7 +4734,7 @@ handle_composition_prop (it) | |||
| 4734 | ->key_and_value, | 4734 | ->key_and_value, |
| 4735 | cmp->hash_index * 2); | 4735 | cmp->hash_index * 2); |
| 4736 | 4736 | ||
| 4737 | it->c = XINT (LGLYPH_CHAR (LGSTRING_GLYPH (lgstring, 0))); | 4737 | it->c = LGLYPH_CHAR (LGSTRING_GLYPH (lgstring, 0)); |
| 4738 | } | 4738 | } |
| 4739 | else | 4739 | else |
| 4740 | #endif /* USE_FONT_BACKEND */ | 4740 | #endif /* USE_FONT_BACKEND */ |
| @@ -19305,9 +19305,9 @@ fill_composite_glyph_string (s, base_face, overlaps) | |||
| 19305 | Lisp_Object g = LGSTRING_GLYPH (gstring, i); | 19305 | Lisp_Object g = LGSTRING_GLYPH (gstring, i); |
| 19306 | unsigned code; | 19306 | unsigned code; |
| 19307 | XChar2b * store_pos; | 19307 | XChar2b * store_pos; |
| 19308 | if (NILP (LGLYPH_FROM (g))) | 19308 | if (NILP (g)) |
| 19309 | break; | 19309 | break; |
| 19310 | code = XUINT (LGLYPH_CODE (g)); | 19310 | code = LGLYPH_CODE (g); |
| 19311 | store_pos = s->char2b + i; | 19311 | store_pos = s->char2b + i; |
| 19312 | STORE_XCHAR2B (store_pos, code >> 8, code & 0xFF); | 19312 | STORE_XCHAR2B (store_pos, code >> 8, code & 0xFF); |
| 19313 | } | 19313 | } |
| @@ -21109,7 +21109,7 @@ x_produce_glyphs (it) | |||
| 21109 | if (cmp->method == COMPOSITION_WITH_GLYPH_STRING) | 21109 | if (cmp->method == COMPOSITION_WITH_GLYPH_STRING) |
| 21110 | { | 21110 | { |
| 21111 | if (! cmp->font || cmp->font != font) | 21111 | if (! cmp->font || cmp->font != font) |
| 21112 | font_prepare_composition (cmp); | 21112 | font_prepare_composition (cmp, it->f); |
| 21113 | } | 21113 | } |
| 21114 | else | 21114 | else |
| 21115 | #endif /* USE_FONT_BACKEND */ | 21115 | #endif /* USE_FONT_BACKEND */ |