<Swing Dev> [9] Review request for 8176883 Enable antialiasing for Metal L&F icons on HiDPI display

Phil Race philip.race at oracle.com
Thu Mar 16 16:47:07 UTC 2017


Hi,

It looks to me as if this applies AA rendering even when you
are drawing using G2D calls. Why ?

Also this clearly only helps Metal. Is that because only Metal has such 
problems ?
I would doubt that.

FWIW Motif L&F probably should not get this treatment.
Also if the desktop is "remote" we should avoid AA. I believe we do that
for text with Metal so there should be example of how to detect that
somewhere.

-phil.

On 03/16/2017 09:03 AM, Alexandr Scherbatiy wrote:
>
> Hello,
>
> Could you review the fix:
>   bug: https://bugs.openjdk.java.net/browse/JDK-8176883
>   webrev: http://cr.openjdk.java.net/~alexsch/8176883/webrev.00
>
>   Metal RadioButton and RadioButtonMenuItem icons are not drawn 
> smoothly on HiDPI displays especially with floating point scales like 
> 1.25 and 1.5.
>   The fix enables the antialiasing rendering hint for the radio button 
> and radio button menu item if the passed graphics is scaled.
>
>   The [1] folder contains screenshots how icons are drawn before the 
> fix (on the left side) and after the fix (on the right side).
>
>   [1] http://cr.openjdk.java.net/~alexsch/8176883/screenshots/00
>
> Thanks,
> Alexandr.
>




More information about the swing-dev mailing list