mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 19:35:51 +00:00
Bug 888607 - Correctly clear sub-frames. r=seth
--HG-- extra : rebase_source : 99ef0a24beea67613a67823fd35c313f933841c9
This commit is contained in:
parent
a52cd51483
commit
29fbe81aa3
@ -424,7 +424,7 @@ FrameBlender::ClearFrame(uint8_t* aFrameData, const nsIntRect& aFrameRect, const
|
||||
}
|
||||
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user