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

Sergey Bylokhov serb at openjdk.org
Mon May 15 21:56:44 UTC 2023


On Sun, 14 May 2023 19:38:12 GMT, Rajat Mahajan <rmahajan at openjdk.org> wrote:

>>>So, I added this code specifically to have improved rendering for the 25% cases, like 125%, 225%, 325% as rendering was a little off f
>> 
>> But why it looks off if the clipRound is used? Does that size scales worse or does it cut the image at some direction?
>
> 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?

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

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



More information about the client-libs-dev mailing list