On Wed, 16 Mar 2022 20:56:09 GMT, Alexey Ivanov <aiva...@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

Reply via email to