Re: Subviews becoming blurry or "chopped up"
Re: Subviews becoming blurry or "chopped up"
- Subject: Re: Subviews becoming blurry or "chopped up"
- From: "John C. Randolph" <email@hidden>
- Date: Thu, 11 May 2006 04:55:30 -0700
On May 11, 2006, at 4:38 AM, Ricky Sharp wrote:
On Thursday, May 11, 2006, at 06:16AM, Rosyna <email@hidden>
wrote:
Ah, so then it is indeed a bug in AppKit wrt fractional parts. Of
course, NSIntegralRect() cannot be used going into the future as it
breaks when using a Resolution Independent UI.
I don't think that's the case. When drawing the final content to
the screen, you want things to always fall on pixel boundaries. My
app makes use of NSIntegralRect, floor, ceil, etc. when drawing
images, bezier paths and text. Content is scaled correctly,
although at a few scaling factors, there can be artifacts around
edges. I have a bug filed on this.
Down the road, you'll want to check the scaling factor to find the
pixel boundaries, instead of counting on integral coordinates to land
in the right places.
-jcr
"The problem with trying to child-proof the world, is that it makes
people neglect the far more important task of world-proofing the
child." -- Hugh Daniel
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden