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

Rajat Mahajan rmahajan at openjdk.org
Mon May 15 22:09:47 UTC 2023


On Mon, 15 May 2023 21:53:58 GMT, Sergey Bylokhov <serb at openjdk.org> wrote:

>> With clipRound this is what I see with 150% Scaling: 
>> 
>> ![image](https://github.com/openjdk/jdk/assets/79671271/600730d5-9eb3-42c9-a9d2-e40b42fb29b0)
>> 
>> With the current code change this is what I see with 150% Scaling:
>> 
>> ![image](https://github.com/openjdk/jdk/assets/79671271/66fc6278-08ea-474a-b26c-2fd007859093)
>> 
>> I see it scaled down with clipRound.
>> I think this because of the calculation difference I mentioned above, as this is very sensitive and even 1pixel here or there can cause rendering issues.
>
> From the picture above it does not seem that the difference is just 1 pixel, no?

Actually I literally didn't mean 1 physical pixel, it was more figurative to say that when the width calculation on Java side is reduced by 1 we see a big difference in final scaling.

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

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



More information about the client-libs-dev mailing list