<Swing Dev> RFR: 8182043: Access to Windows Large Icons [v4]
Alexander Zuev
kizune at openjdk.java.net
Fri May 14 18:47:42 UTC 2021
On Fri, 14 May 2021 13:41:31 GMT, Alexey Ivanov <aivanov at openjdk.org> wrote:
>> I see - but still it has to be solved in the getShell32Icon method - which i'm going to do in a moment.
>
> `Win32ShellFolder2.getSystemIcon` is still affected, the return value should be wrapped into MR-icon if its size is not equal to `LARGE_ICON_SIZE`.
>
> static Image getSystemIcon(SystemIcon iconType) {
> long hIcon = getSystemIcon(iconType.getIconID());
> Image icon = makeIcon(hIcon);
> if (LARGE_ICON_SIZE != icon.getWidth(null)) {
> icon = new MultiResolutionIconImage(size, icon);
> }
> disposeIcon(hIcon);
> return icon;
> }
Fixed.
-------------
PR: https://git.openjdk.java.net/jdk/pull/2875
More information about the swing-dev
mailing list