RFR: 8332895: Support interpolation for backgrounds and borders [v2]

Andy Goryachev angorya at openjdk.org
Fri Aug 2 16:21:40 UTC 2024


On Thu, 1 Aug 2024 21:54:18 GMT, Andy Goryachev <angorya at openjdk.org> wrote:

>> Michael Strauß has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   fixed a bug
>
> modules/javafx.graphics/src/main/java/javafx/css/StyleableLongProperty.java line 136:
> 
>> 134:         @Override
>> 135:         public void onUpdate(double progress) {
>> 136:             set(progress < 1 ? startValue + (long)((endValue - startValue) * progress) : endValue);
> 
> minor: should it use (long)Math.round() ?

edit: I think it should.

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

PR Review Comment: https://git.openjdk.org/jfx/pull/1522#discussion_r1702063665


More information about the openjfx-dev mailing list