I meant to invert the fore color, not the back color. cleanup for my previous patch. b=338374

This commit is contained in:
joshmoz%gmail.com 2006-05-26 03:38:48 +00:00
Родитель 0f4cddd766
Коммит b0969e3e36
1 изменённых файлов: 10 добавлений и 8 удалений

Просмотреть файл

@ -887,9 +887,10 @@ NS_IMETHODIMP nsRenderingContextMac::DrawLine(nscoord aX0, nscoord aY0, nscoord
::PenPat(&dashedPattern);
else
::PenPat(&dottedPattern);
RGBColor invertedColor = savedBGColor;
::InvertColor(&invertedColor);
::RGBBackColor(&invertedColor);
RGBColor invertedForeColor;
::GetForeColor(&invertedForeColor);
::InvertColor(&invertedForeColor);
::RGBBackColor(&invertedForeColor);
}
mGS->mTMatrix.TransformCoord(&aX0,&aY0);
@ -936,9 +937,10 @@ NS_IMETHODIMP nsRenderingContextMac::DrawPolyline(const nsPoint aPoints[], PRInt
::PenPat(&dashedPattern);
else
::PenPat(&dottedPattern);
RGBColor invertedColor = savedBGColor;
::InvertColor(&invertedColor);
::RGBBackColor(&invertedColor);
RGBColor invertedForeColor;
::GetForeColor(&invertedForeColor);
::InvertColor(&invertedForeColor);
::RGBBackColor(&invertedForeColor);
}
PRInt32 x,y;