[cairo-commit] cairo/src cairo-win32-font.c,1.41,1.42
Tim Rowley
commit at pdx.freedesktop.org
Wed Sep 28 10:25:26 PDT 2005
Committed by: tor
Update of /cvs/cairo/cairo/src
In directory gabe:/tmp/cvs-serv19662/src
Modified Files:
cairo-win32-font.c
Log Message:
* ROADMAP: Note that Bug #4612 (Text not being drawn if first
character entirely out of surface) is now fixed.
* src/cairo-win32-font.c (_cairo_win32_scaled_font_glyph_bbox):
Add cast so that sign conversion doesn't alter comparison.
Index: cairo-win32-font.c
===================================================================
RCS file: /cvs/cairo/cairo/src/cairo-win32-font.c,v
retrieving revision 1.41
retrieving revision 1.42
diff -u -d -r1.41 -r1.42
--- cairo-win32-font.c 26 Sep 2005 14:48:10 -0000 1.41
+++ cairo-win32-font.c 28 Sep 2005 17:25:24 -0000 1.42
@@ -846,10 +846,10 @@
x1 = x + metrics.gmptGlyphOrigin.x;
if (i == 0 || y1 > y - metrics.gmptGlyphOrigin.y)
y1 = y - metrics.gmptGlyphOrigin.y;
- if (i == 0 || x2 < x + metrics.gmptGlyphOrigin.x + metrics.gmBlackBoxX)
- x2 = x + metrics.gmptGlyphOrigin.x + metrics.gmBlackBoxX;
- if (i == 0 || y2 < y - metrics.gmptGlyphOrigin.y + metrics.gmBlackBoxY)
- y2 = y - metrics.gmptGlyphOrigin.y + metrics.gmBlackBoxY;
+ if (i == 0 || x2 < x + metrics.gmptGlyphOrigin.x + (int)metrics.gmBlackBoxX)
+ x2 = x + metrics.gmptGlyphOrigin.x + (int)metrics.gmBlackBoxX;
+ if (i == 0 || y2 < y - metrics.gmptGlyphOrigin.y + (int)metrics.gmBlackBoxY)
+ y2 = y - metrics.gmptGlyphOrigin.y + (int)metrics.gmBlackBoxY;
}
cairo_win32_scaled_font_done_font (&scaled_font->base);
More information about the cairo-commit
mailing list