mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
d2982ae47f
With FillRect we were setting the transform twice. The patch looks really bad because I needed to move the implementation of MaskSurface so that it was below the helper methods. The actual change is: - FillRect(Rect(aOffset.x, aOffset.y, size.width, size.height), aSource, aDrawOptions); - + if (isGradient(aSource)) { + // we shouldn't need to clip to an additional rectangle + // as the cliping to the mask should be sufficient. + DrawGradient(cg, aSource); + } else { + SetFillFromPattern(cg, mColorSpace, aSource); + CGContextFillRect(cg, CGRectMake(aOffset.x, aOffset.y, size.width, size.height)); + } This also avoids setting up other state like alpha and the unboundness fixer twice. --HG-- extra : rebase_source : 762f2d94ddaff129d584aab1e1f429ddfea99277 |
||
---|---|---|
.. | ||
2d | ||
angle | ||
cairo | ||
gl | ||
graphite2 | ||
harfbuzz | ||
ipc | ||
layers | ||
ots | ||
qcms | ||
skia | ||
src | ||
tests | ||
thebes | ||
ycbcr | ||
moz.build |