mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-16 06:45:42 +00:00
Fix a crash with Test10: a missing SetPort() in FindScreenForSurface().
This commit is contained in:
parent
f5462e874c
commit
5596e5e774
@ -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 };
|
||||
|
Loading…
Reference in New Issue
Block a user