Fix obvious error in the patch for bug 218462 to fix blocker bug 219769 (Mozilla and Firebird start in a zero height window). r/sr=jst pending.
git-svn-id: svn://10.0.0.236/trunk@147087 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
86e7e01e10
commit
37a64ed822
@ -253,16 +253,15 @@ ScreenImpl::GetAvailRect(nsRect& aRect)
|
||||
return NS_ERROR_FAILURE;
|
||||
}
|
||||
|
||||
nsRect rect;
|
||||
context->GetClientRect(rect);
|
||||
context->GetClientRect(aRect);
|
||||
|
||||
float devUnits;
|
||||
context->GetDevUnitsToAppUnits(devUnits);
|
||||
|
||||
aRect.x = NSToIntRound(float(aRect.x) / devUnits);
|
||||
aRect.y = NSToIntRound(float(aRect.y) / devUnits);
|
||||
aRect.x = NSToIntRound(float(aRect.x) / devUnits);
|
||||
aRect.y = NSToIntRound(float(aRect.y) / devUnits);
|
||||
aRect.height = NSToIntRound(float(aRect.height) / devUnits);
|
||||
aRect.width = NSToIntRound(float(aRect.width) / devUnits);
|
||||
aRect.width = NSToIntRound(float(aRect.width) / devUnits);
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user