RFR: JDK-8294427 - Check boxes and radio buttons have rendering issues on Windows in High DPI env [v9]

Rajat Mahajan rmahajan at openjdk.org
Thu Jun 1 21:40:13 UTC 2023


On Thu, 1 Jun 2023 21:10:39 GMT, Alisen Chung <achung at openjdk.org> wrote:

>> Rajat Mahajan has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   code changes as per code review
>
> src/java.desktop/share/classes/sun/swing/CachedPainter.java line 318:
> 
>> 316:         public Image getResolutionVariant(double destWidth, double destHeight) {
>> 317:             int w = (int) Math.floor(destWidth + 0.5);
>> 318:             int h = (int) Math.floor(destHeight + 0.5);
> 
> Does this problem only affect windows? Will this change in shared code affect the painting of other platforms?

I think this function was added by the fix for [JDK-8143064](https://bugs.openjdk.org/browse/JDK-8143064) : Icons are not properly rendered with Windows L&F on HiDPI display

which was for Windows.
I tested my change on other platforms as well , didn't see any regression.

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/13701#discussion_r1213707976



More information about the client-libs-dev mailing list