RFR: 8303904: [macos]Transparent Windows Paint Wrong (Opaque, Pixelated) w/o Volatile Buffering [v3]

Jeremy duke at openjdk.org
Wed Feb 26 18:37:56 UTC 2025


On Mon, 24 Feb 2025 08:41:47 GMT, anass baya <duke at openjdk.org> wrote:

>> The PR includes two fix : 
>> 1 - The first fix targets proper rendering of the transparent image.
>> 2 - The second fix ensures the image is painted at the correct resolution to avoid pixelation.
>
> anass baya has updated the pull request incrementally with three additional commits since the last revision:
> 
>  - Enhancment step 3
>  - Enhancement - step 2
>  - enhancement - step 1

src/java.desktop/macosx/classes/sun/lwawt/LWComponentPeer.java line 983:

> 981:         Image img = getLWGC().createAcceleratedImage(getTarget(), scaledWidth, scaledHeight);
> 982:         if(ScaleX == 1 || ScaleY == 1)
> 983:             return img;

Should this be `&&` instead of `||`?

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

PR Review Comment: https://git.openjdk.org/jdk/pull/23430#discussion_r1972142186


More information about the client-libs-dev mailing list