Bug 429774. r+sr=roc,a1.9=beltzner

git-svn-id: svn://10.0.0.236/trunk@250691 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
longsonr%gmail.com
2008-04-23 12:35:28 +00:00
parent 0e61cbfb45
commit 5d9ee3f818

View File

@@ -4951,16 +4951,16 @@ GenerateNormal(float *N, const PRUint8 *data, PRInt32 stride, nsRect rect,
{ 2.0 / 3.0, 1.0 / 2.0, 2.0 / 3.0 } };
PRInt8 xflag, yflag;
if (x == 0) {
if (x == rect.x) {
xflag = 0;
} else if (x == rect.width - 1) {
} else if (x == rect.XMost() - 1) {
xflag = 2;
} else {
xflag = 1;
}
if (y == 0) {
if (y == rect.y) {
yflag = 0;
} else if (y == rect.height - 1) {
} else if (y == rect.YMost() - 1) {
yflag = 2;
} else {
yflag = 1;