mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 888607 - Correctly clear sub-frames. r=seth
--HG-- extra : rebase_source : 99ef0a24beea67613a67823fd35c313f933841c9
This commit is contained in:
parent
ed16810baa
commit
0390c248d7
@ -424,7 +424,7 @@ FrameBlender::ClearFrame(uint8_t* aFrameData, const nsIntRect& aFrameRect, const
|
|||||||
}
|
}
|
||||||
|
|
||||||
uint32_t bytesPerRow = aFrameRect.width * 4;
|
uint32_t bytesPerRow = aFrameRect.width * 4;
|
||||||
for (int row = toClear.y; row < toClear.height; ++row) {
|
for (int row = toClear.y; row < toClear.y + toClear.height; ++row) {
|
||||||
memset(aFrameData + toClear.x * 4 + row * bytesPerRow, 0, toClear.width * 4);
|
memset(aFrameData + toClear.x * 4 + row * bytesPerRow, 0, toClear.width * 4);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user