Re: CGDisplayBounds() with stacked displays...
Re: CGDisplayBounds() with stacked displays...
- Subject: Re: CGDisplayBounds() with stacked displays...
- From: "Shawn Erickson" <email@hidden>
- Date: Thu, 1 Nov 2007 18:57:49 -0700
On 11/1/07, Mike McNamara <email@hidden> wrote:
>
> Hello all -
>
> I'm in the midst of adding support for multiple displays to my
> application and have come across something I can't get my head
> around. If I open the System Preferences and move my secondary
> display either on top of or beneath my primary display in the
> Displays panel, CGDisplayBounds() always returns kCGNullDirectDisplay
> if I'm in the secondary display. CGDisplayBounds() returns what I
> would expect for the secondary display when situated to either the
> left or right of the primary one however. If the secondary display
> is significantly "vertically mis-aligned" with the primary one
> CGDisplayBounds() will only return the secondary display ID in a
> small portion of the device -- whichever portion is closest to the
> primary one. Is this normal behavior?
I am confused by what you state in the above... CGDisplayBounds
returns a CGRect that outlines the bounds in global coordinates for
the display ID you supply it. It doesn't return display IDs nor
kCGNullDirectDisplay.
Maybe you are talking about CGGetDisplaysWithRect?
-Shawn
_______________________________________________
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