Bug 888607 - Correctly clear sub-frames. r=seth

--HG--
extra : rebase_source : 99ef0a24beea67613a67823fd35c313f933841c9
This commit is contained in:
Joe Drew 2013-07-04 17:05:59 -04:00
parent ed16810baa
commit 0390c248d7

View File

@ -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);
} }
} }