Re: FYI - Resolution Independence
Re: FYI - Resolution Independence
- Subject: Re: FYI - Resolution Independence
- From: Ricky Sharp <email@hidden>
- Date: Sat, 27 Oct 2007 08:22:38 -0500
On Oct 27, 2007, at 8:14 AM, Alastair Houghton wrote:
On 27 Oct 2007, at 13:15, Ricky Sharp wrote:
You mean dual monitors? It should "just work". After all, if your
app draws to points and not pixels, it is now "resolution
independent". One square inch worth of graphics your app draws
will occupy a physical inch on either monitor, no matter what the
individual monitor's dpi is.
Yeah, I'm not sure that's actually how things currently work in
practice. I think, presently, there is a lot of stuff tied to the
idea that one window has one backing buffer with a single scale
factor. So if you drag a window so that it overlaps the boundary
between the two displays, I think things will not be as one would
really like.
You may be right, now that I think about it. Yes, each window does
have a single backing buffer. I'm sure they'll work it out though.
Probably a matter of ensuring the backing buffer contains the highest
amount of pixels necessary for the highest dpi display. Sort of
reminds of the initial demos done ages ago showing a QuickTime movie
spanning multiple monitors all at different bit depths. I believe
the frame buffer always contained a representation to draw on the
highest bit-depth display and then downsampled when rendered on other
displays. Same should hold true for RI; downsample the portions to
render on lower-dpi displays.
Thankfully Cocoa (and I believe Carbon's HIView framework) uses
framework scaling. So there shouldn't be anything that we have to do
in order to support this in our apps :)
___________________________________________________________
Ricky A. Sharp mailto:email@hidden
Instant Interactive(tm) http://www.instantinteractive.com
_______________________________________________
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