On Thu, 1 Jun 2023 21:10:39 GMT, Alisen Chung <[email protected]> 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