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

Adrian Johnson ajohnson at kemper.freedesktop.org
Mon Mar 10 05:01:06 PDT 2008


 src/cairo-win32-printing-surface.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 2d9203c349ffba863368e85567b2e89443d51746
Author: Adrian Johnson <ajohnson at redneon.com>
Date:   Mon Mar 10 22:30:16 2008 +1030

    win32-printing: Don't scale the miter limit
    
    since the miter is a ratio it should not be scaled like the other
    stroke parameters when the user ctm is scaled.

diff --git a/src/cairo-win32-printing-surface.c b/src/cairo-win32-printing-surface.c
index 70f6220..0713ef7 100644
--- a/src/cairo-win32-printing-surface.c
+++ b/src/cairo-win32-printing-surface.c
@@ -1162,7 +1162,7 @@ _cairo_win32_printing_surface_stroke (void                 *abstract_surface,
 	pen_style |= PS_SOLID;
     }
 
-    SetMiterLimit (surface->dc, (FLOAT) (scale * style->miter_limit), NULL);
+    SetMiterLimit (surface->dc, (FLOAT) (style->miter_limit), NULL);
     if (source->type == CAIRO_PATTERN_TYPE_SOLID) {
 	cairo_solid_pattern_t *solid = (cairo_solid_pattern_t *) source;
 


More information about the cairo-commit mailing list