| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
Humn, no matter what I tried I couldn't fix it. I have however come up with a solution that seems to work. In my view I override adjustScroll - (NSRect)adjustScroll:(NSRect)proposedVisibleRect { NSRect modifiedRect=proposedVisibleRect; modifiedRect.origin.x = (int)(modifiedRect.origin.x/2) * 2; modifiedRect.origin.y = (int)(modifiedRect.origin.y/2) * 2; return modifiedRect; } To scroll a minimum of 2 pixels, this seems to solve the problem. This works in my single simple line case and also in my other test code which is drawing the type of data that the final application will be drawing. Quartz looks beautiful. Even comparing my basic simple app with our current shipping product on windows shows a marked difference in quality. If this fix works (which as far as I can tell it does) then I can live with a minimum scroll of 2 pixels. Adrian On 17 Mar 2008, at 05:33, mikevann wrote: One more thought, constrain your stroked line to just the drawn rect. If you're using copy-on-scroll you'll be stroking over the copied area. |
_______________________________________________ Do not post admin requests to the list. They will be ignored. Quartz-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/quartz-dev/email@hidden This email sent to email@hidden
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.