RFR: 8282526: Default icon is not painted properly
Alexander Zuev
kizune at openjdk.java.net
Wed Mar 16 21:03:40 UTC 2022
On Wed, 16 Mar 2022 20:56:09 GMT, Alexey Ivanov <aivanov at openjdk.org> wrote:
> If the default value for `KEY_INTERPOLATION` is not `VALUE_INTERPOLATION_NEAREST_NEIGHBOR`, it will be changed to a non-default value after painting the icon. Right?
Yes, that code depends on the understanding that if no hint is set than default behavior is as if it set to VALUE_INTERPOLATION_NEAREST_NEIGHBOR. The alternative would be to create a new Graphics, set the hint there and discard that graphics immediately after painting.
-------------
PR: https://git.openjdk.java.net/jdk/pull/7805
More information about the client-libs-dev
mailing list