RFR: 8271398: GTK3 drag view image swaps red and blue color channels
Pankaj Bansal
pbansal at openjdk.java.net
Fri Aug 6 05:33:29 UTC 2021
On Fri, 6 Aug 2021 02:18:38 GMT, Thiago Milczarek Sayao <tsayao at openjdk.org> wrote:
> It seems raw images need to be converted BRGA -> RGBA.
>
> It was being converted on gtk2 code path, but gtk3 only uses `gtk_drag_set_icon_pixbuf`.
>
> It simplified the gtk2 `DragView::View::expose` to paint with `gdk_cairo_set_source_pixbuf` (that is available since Gtk 2.8). The existing path seems to be converting again.
>
> Run the issue sample with `-Djdk.gtk.version=2` to test.
I will look at this. Meanwhile, could you please write an automated system test for this?
-------------
PR: https://git.openjdk.java.net/jfx/pull/599
More information about the openjfx-dev
mailing list