Fix a crash with Test10: a missing SetPort() in FindScreenForSurface().

This commit is contained in:
pierre%netscape.com 2006-02-10 22:48:29 +00:00
parent f5462e874c
commit 5596e5e774

View File

@ -476,6 +476,8 @@ nsDeviceContextMac :: FindScreenForSurface ( nsIScreen** outScreen )
NS_IF_ADDREF(*outScreen = sPrimaryScreen.get());
}
else {
::SetPort ( window );
// convert window bounds to global coordinates
Point topLeft = { bounds.top, bounds.left };
Point bottomRight = { bounds.bottom, bounds.right };