Piotr Caban : gdi32: Ignore contours containing one point in get_glyph_outline function.
Alexandre Julliard
julliard at winehq.org
Tue Nov 13 13:46:05 CST 2012
Module: wine
Branch: master
Commit: b696558f04511f86bff73e20adebed7f422b15c2
URL: http://source.winehq.org/git/wine.git/?a=commit;h=b696558f04511f86bff73e20adebed7f422b15c2
Author: Piotr Caban <piotr at codeweavers.com>
Date: Tue Nov 13 16:51:29 2012 +0100
gdi32: Ignore contours containing one point in get_glyph_outline function.
---
dlls/gdi32/freetype.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/dlls/gdi32/freetype.c b/dlls/gdi32/freetype.c
index 8b56330..79a0975 100644
--- a/dlls/gdi32/freetype.c
+++ b/dlls/gdi32/freetype.c
@@ -6377,6 +6377,12 @@ static DWORD get_glyph_outline(GdiFont *incoming_font, UINT glyph, UINT format,
}
for(contour = 0; contour < outline->n_contours; contour++) {
+ /* Ignore contours containing one point */
+ if(point == outline->contours[contour]) {
+ point++;
+ continue;
+ }
+
pph_start = needed;
pph = (TTPOLYGONHEADER *)((char *)buf + needed);
first_pt = point;
More information about the wine-cvs
mailing list