Re: NSScreen + resolution change
Re: NSScreen + resolution change
- Subject: Re: NSScreen + resolution change
- From: Ricky Sharp <email@hidden>
- Date: Wed, 18 Jul 2007 04:23:54 -0700
On Wednesday, July 18, 2007, at 04:35AM, "Thomas Engelmeier" <email@hidden> wrote:
>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?
You will most likely need to do the "offset" workaround.
Do a google search on "NSScreen resolution change". There are many hits to include this one:
<http://www.idevgames.com/forum/archive/index.php/t-10002.html>
--
Rick Sharp
Instant Interactive(tm)
_______________________________________________
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