aboutsummaryrefslogtreecommitdiffstats
path: root/src/composite.c
diff options
context:
space:
mode:
authorPaul Eggert2011-04-04 12:46:32 -0700
committerPaul Eggert2011-04-04 12:46:32 -0700
commitb13a45c6f92b2489ddd16ba2af9f19ebf46d3a2a (patch)
treeef4d445ec413a6638c438b5952a617dc57ba322f /src/composite.c
parent1e792e4d80f58bdb5b460518729eb0585b10f8d3 (diff)
downloademacs-b13a45c6f92b2489ddd16ba2af9f19ebf46d3a2a.tar.gz
emacs-b13a45c6f92b2489ddd16ba2af9f19ebf46d3a2a.zip
* composite.h (COMPOSITION_DECODE_REFS): New macro,
breaking out part of COMPOSITION_DECODE_RULE. (COMPOSITION_DECODE_RULE): Use it. * composite.c (get_composition_id): Remove unused local vars, by using the new macro.
Diffstat (limited to 'src/composite.c')
-rw-r--r--src/composite.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/composite.c b/src/composite.c
index bc5644a4612..af642ad9a72 100644
--- a/src/composite.c
+++ b/src/composite.c
@@ -354,7 +354,7 @@ get_composition_id (EMACS_INT charpos, EMACS_INT bytepos, EMACS_INT nchars,
354 354
355 for (i = 1; i < glyph_len; i += 2) 355 for (i = 1; i < glyph_len; i += 2)
356 { 356 {
357 int rule, gref, nref, xoff, yoff; 357 int rule, gref, nref;
358 int this_width; 358 int this_width;
359 float this_left; 359 float this_left;
360 360
@@ -376,7 +376,7 @@ get_composition_id (EMACS_INT charpos, EMACS_INT bytepos, EMACS_INT nchars,
376 | | 376 | |
377 6---7---8 -- descent 377 6---7---8 -- descent
378 */ 378 */
379 COMPOSITION_DECODE_RULE (rule, gref, nref, xoff, yoff); 379 COMPOSITION_DECODE_REFS (rule, gref, nref);
380 this_left = (leftmost 380 this_left = (leftmost
381 + (gref % 3) * (rightmost - leftmost) / 2.0 381 + (gref % 3) * (rightmost - leftmost) / 2.0
382 - (nref % 3) * this_width / 2.0); 382 - (nref % 3) * this_width / 2.0);