mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1015166 - Account for TopLeft of aBoundsRect in nsWindow::UpdateAlpha. r=ajones
This commit is contained in:
parent
ef56d3cb5d
commit
b09cc03e43
@ -2268,7 +2268,10 @@ nsWindow::UpdateAlpha(gfxPattern* aPattern, nsIntRect aBoundsRect)
|
||||
stride, SurfaceFormat::A8);
|
||||
|
||||
if (drawTarget) {
|
||||
drawTarget->FillRect(Rect(0, 0, aBoundsRect.width, aBoundsRect.height),
|
||||
Matrix transform = Matrix::Translation(-aBoundsRect.x, -aBoundsRect.y);
|
||||
drawTarget->SetTransform(transform);
|
||||
|
||||
drawTarget->FillRect(Rect(aBoundsRect.x, aBoundsRect.y, aBoundsRect.width, aBoundsRect.height),
|
||||
*aPattern->GetPattern(drawTarget),
|
||||
DrawOptions(1.0, CompositionOp::OP_SOURCE));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user