--- a/modules/libpr0n/src/imgFrame.cpp +++ b/modules/libpr0n/src/imgFrame.cpp @@ -598,11 +598,17 @@ // have adjusted the pattern's matrix ... but the adjustment // is only a translation so the scale factors in deviceToImage // are still valid. + // + // Update 1/07/10: The underlying X server/driver bugs are now + // fixed, and the cairo version that ubuntu ships since karmic + // uses the fast XRender code-path, so we can safely enable + // EXTEND_PAD. + PRBool isDownscale = deviceToImage.xx >= 1.0 && deviceToImage.yy >= 1.0 && deviceToImage.xy == 0.0 && deviceToImage.yx == 0.0; if (!isDownscale) { - pattern->SetFilter(gfxPattern::FILTER_FAST); + pattern->SetExtend(gfxPattern::EXTEND_PAD); } break; }