Fix Fl_Xlib_Graphics_Driver for tiled-depth 3 images.

Modifying test/tiled_image to make it use a depth-3 image for
tiling (rather than an Fl_Pixmap) shows the filter does require
to use PictOpOver as the render op in the XRenderComposite call.
This commit is contained in:
ManoloFLTK 2022-08-09 17:43:48 +02:00
parent 1562396ec0
commit 92f6962b59

View File

@ -836,8 +836,8 @@ int Fl_Xlib_Graphics_Driver::scale_and_render_pixmap(Fl_Offscreen pixmap, int de
// "When you use a filter you'll probably want to use PictOpOver as the render op,
// regardless of whether the source picture has an alpha channel or not, since
// the edges may end up having alpha values after the filter has been applied."
// suggests this would be preferable :
// has_alpha = true;
// suggests this is necessary :
has_alpha = true;
}
}
XRenderComposite(fl_display, (has_alpha ? PictOpOver : PictOpSrc), src, None, dst, 0, 0, 0, 0,