From 1f801abc64b2ab247cd38c40ae828157cdb964ab Mon Sep 17 00:00:00 2001 From: buliabyak Date: Mon, 1 Sep 2008 23:05:17 +0000 Subject: [PATCH] use smaller subpixel scaling; large values take more memory and sometimes fail for too large patter tiles --- src/extension/internal/cairo-render-context.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/extension/internal/cairo-render-context.cpp b/src/extension/internal/cairo-render-context.cpp index 0a12a5c5b..0c3c469c2 100644 --- a/src/extension/internal/cairo-render-context.cpp +++ b/src/extension/internal/cairo-render-context.cpp @@ -977,7 +977,7 @@ CairoRenderContext::_createPatternPainter(SPPaintServer const *const paintserver height_scaler *= 1.25; } -#define SUBPIX_SCALE 1000 +#define SUBPIX_SCALE 100 // Cairo requires an integer pattern surface width/height. // Subtract 0.5 to prevent small rounding errors from increasing pattern size by one pixel. -- 2.30.2