diff --git a/splash/Splash.cc b/splash/Splash.cc index 142516f..e8eb159 100644 --- a/splash/Splash.cc +++ b/splash/Splash.cc @@ -2544,6 +2544,8 @@ SplashError Splash::fillWithPattern(SplashPath *path, GBool eo, clipRes = splashClipPartial; } + pipe.shape = 0; + pipeInit(&pipe, 0, yMinI, pattern, NULL, (Guchar)splashRound(alpha * 255), vectorAntialias && !inShading, gFalse); @@ -2800,6 +2802,8 @@ void Splash::fillGlyph2(int x0, int y0, SplashGlyphBitmap *glyph, GBool noClip) if (xxLimit + xStart >= bitmap->width) xxLimit = bitmap->width - xStart; if (yyLimit + yStart >= bitmap->height) yyLimit = bitmap->height - yStart; + pipe.shape = 0; + if (noClip) { if (glyph->aa) { pipeInit(&pipe, xStart, yStart, @@ -5089,6 +5093,7 @@ void Splash::blitImage(SplashBitmap *src, GBool srcAlpha, int xDest, int yDest, // draw the unclipped region if (x0 < w && y0 < h && x0 < x1 && y0 < y1) { + pipe.shape = 0; pipeInit(&pipe, xDest + x0, yDest + y0, NULL, pixel, (Guchar)splashRound(state->fillAlpha * 255), srcAlpha, gFalse); if (srcAlpha) { @@ -5140,6 +5145,8 @@ void Splash::blitImageClipped(SplashBitmap *src, GBool srcAlpha, Guchar *ap; int x, y; + pipe.shape = 0; + if (vectorAntialias) { pipeInit(&pipe, xDest, yDest, NULL, pixel, (Guchar)splashRound(state->fillAlpha * 255), gTrue, gFalse);