NSScreen + resolution change
NSScreen + resolution change
- Subject: NSScreen + resolution change
- From: Thomas Engelmeier <email@hidden>
- Date: Wed, 18 Jul 2007 11:33:55 +0200
Hi,
I have an kiosk-type application that optionally changes the
resolution via CGDisplaySwitchToMode and then goes full-screen
Unfortunately [[NSScreen mainScreen] frame] (et al.) continues to
return the pre resolution switch values.
The problem is that in Cocoa origin.y seems to get shifted during the
resolution change, probably due to the top-left origin coordinate
system in Quartz.
I.e. changing the resolution results in an display coordinate system
moving [0,0,1280,800] -> [0,32,1024,768].
Is there a way to get up-to-date values instead of relying on an
deltaY shift?
TIA,
Tom_E
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden