RFR: 8311492: FontSmoothingType LCD produces wrong color when transparency is used [v2]
Kevin Rushforth
kcr at openjdk.org
Fri Feb 9 14:32:02 UTC 2024
On Fri, 9 Feb 2024 13:09:23 GMT, John Hendrikx <jhendrikx at openjdk.org> wrote:
>> Kevin Rushforth has updated the pull request incrementally with one additional commit since the last revision:
>>
>> Address review feedback
>
> modules/javafx.graphics/src/main/java/com/sun/prism/sw/SWGraphics.java line 664:
>
>> 662: getRenderTarget().isOpaque() &&
>> 663: (this.paint.getType() == Paint.Type.COLOR) &&
>> 664: ((Color)this.paint).getAlpha() == 1.0f &&
>
> Could avoid the cast here if you want:
>
> Suggestion:
>
> this.paint instanceof Color c &&
> c.getAlpha() == 1.0f &&
I had thought of it earlier, but didn't do it at the time. I made this change along with the suggested test changes. Thanks for the suggestions.
-------------
PR Review Comment: https://git.openjdk.org/jfx/pull/1361#discussion_r1484397314
More information about the openjfx-dev
mailing list