[cairo-commit] src/cairo-win32-surface.c

Carl Worth cworth at kemper.freedesktop.org
Tue Feb 13 16:32:11 PST 2007


 src/cairo-win32-surface.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

New commits:
diff-tree f0a16b5bddc5c162c78ae976093fe8bb2b756e04 (from aad1374caab3a05893c9f1f2605131edd9f62409)
Author: Dan Amelang <dan at amelang.net>
Date:   Sun Feb 11 03:34:27 2007 -0800

    Fix Win32 text spacing problem
    
    Thanks to Jordan Miner for reporting the problem and a fix.

diff --git a/src/cairo-win32-surface.c b/src/cairo-win32-surface.c
index 4025b94..6899c95 100644
--- a/src/cairo-win32-surface.c
+++ b/src/cairo-win32-surface.c
@@ -1580,8 +1580,8 @@ _cairo_win32_surface_show_glyphs (void		
             next_logical_x = _cairo_lround (next_user_x);
             next_logical_y = _cairo_lround (next_user_y);
 
-            dxy_buf[j] = _cairo_lround ((next_logical_x - logical_x) * WIN32_FONT_LOGICAL_SCALE);
-            dxy_buf[j+1] = _cairo_lround ((next_logical_y - logical_y) * WIN32_FONT_LOGICAL_SCALE);
+            dxy_buf[j] = _cairo_lround (next_logical_x - logical_x);
+            dxy_buf[j+1] = _cairo_lround (next_logical_y - logical_y);
 
             logical_x = next_logical_x;
             logical_y = next_logical_y;


More information about the cairo-commit mailing list