Request for review: 8004866 [macosx] HiDPI support in Aqua L&F
swingler at apple.com
Sun Apr 7 09:13:53 PDT 2013
It may be beneficial to put up a Q&A page on the Mac OS X Port project wiki to answer common questions like this.
As an example, I wrote up a Q&A explaining the decision making process that went into the new graphics stack for Java 7:
Having something similar for HiDPI would be very helpful to point people to when they want to know how to do X, or knowing if a certain technique is going to work.
On Apr 5, 2013, at 4:29 AM, Marco Dinacci <marco.dinacci at gmail.com> wrote:
> thanks a lot for this work, this is indeed something many developers including myself were looking for.
> Is there any plan to backport all changes related to hi-dpi support to OpenJDK 7 ?
> On 4 April 2013 19:02, Sergey Bylokhov <Sergey.Bylokhov at oracle.com> wrote:
> Please review the fix for jdk 8. Change adds support of hidpi to Aqua l&f.
> Change description:
> - AquaPainter takes into account scale, when creates image.
> - ImageCache now use scale factor as a key.
> - CGContext also scaled to a ratio of image/control width/height
> - Cleanup
> Note that this fix depends from the:
> Bug: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=8004866
> Webrev can be found at: http://cr.openjdk.java.net/~serb/8004866/webrev.00
> Best regards, Sergey.
More information about the macosx-port-dev