<Swing Dev> RFR: 8182043: Access to Windows Large Icons [v16]

Sergey Bylokhov serb at openjdk.java.net
Fri May 28 01:06:20 UTC 2021


On Fri, 7 May 2021 17:53:49 GMT, Alexander Zuev <kizune at openjdk.org> wrote:

>> This comment is also about the case of not fetching icons of sizes smaller than requested size.
>
> Sorry, missed that in my latest fix. Indeed there is no legitimate ways to set scaling factor to less than 100% on Windows so yes, omitting the icons that are less than expected size. As for starting the count from the correct index - to get the correct index we would have to traverse the array of possible resolutions anyways so there is no performance gain.

The MRI image takes care of graphics transformation which might be the same as a scale factor of the screen for the onscreen rendering, but in general, it might be set to any value by the application when rendered to the image.

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

PR: https://git.openjdk.java.net/jdk/pull/2875


More information about the swing-dev mailing list