summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Lillqvist <tml@src.gnome.org>2002-09-24 20:21:26 +0000
committerTor Lillqvist <tml@src.gnome.org>2002-09-24 20:21:26 +0000
commitd62cc58ce50c65d90bcd7a4a2b97c83d6854fc4d (patch)
tree474496c2381f6297203ea037f86f15eb15c7c4d3
parent73ea88f60f7b92f8e1f74a36cd2742df072539ae (diff)
downloadpango-d62cc58ce50c65d90bcd7a4a2b97c83d6854fc4d.tar.gz
Still a tiny improvement to pango_win32_render: keep tally of last_x
using the whole pixel values passed to Windows.
-rw-r--r--pango/pangowin32.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/pango/pangowin32.c b/pango/pangowin32.c
index 72a19e65..71bfbed8 100644
--- a/pango/pangowin32.c
+++ b/pango/pangowin32.c
@@ -310,7 +310,8 @@ pango_win32_render (HDC hdc,
else
glyph_indexes[num_valid_glyphs] = glyphs->glyphs[i].glyph;
- last_x = PANGO_PIXELS (x_offset);
+ if (num_valid_glyphs > 0)
+ last_x += dX[num_valid_glyphs-1];
x_offset += glyphs->glyphs[i].geometry.width;
dX[num_valid_glyphs] = PANGO_PIXELS (x_offset) - last_x;
num_valid_glyphs++;