Bug 616901. Fix rect in nptest_windows.cpp, to fix misrendering in 580160-1-ref.html. r=bsmedberg a=tests-only

This commit is contained in:
Robert O'Callahan 2010-12-10 10:30:50 -08:00
parent 449c3560c9
commit 9f868999f2

View File

@ -115,7 +115,7 @@ drawToDC(InstanceData* instanceData, HDC dc,
switch (instanceData->scriptableObject->drawMode) {
case DM_DEFAULT:
{
const RECT fill = { x, y, width, height };
const RECT fill = { x, y, x + width, y + height };
int oldBkMode = ::SetBkMode(dc, TRANSPARENT);
HBRUSH brush = ::CreateSolidBrush(RGB(0, 0, 0));