Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: X11 specific
Group: bug fix
Submitted By: Burkhard Fischer (bf089)
Assigned to: Nobody/Anonymous (nobody)
Summary: bitmap clipping / transparency mask (X11 port)
bitmap clipping doesn't work correctly in the wxX11 port.
wxWindowDC::DoDrawBitmap() in src/x11/dcclient.cpp
contains the deactivated gtk code for this
The patch contains an similar approach using the xlib
1. If the bitmap has to be clipped: create a new
Pixmap, fill it with the transparency color, fill the
clip rectangle with foreground color and use
XSetClipMask() to do the clipping
2. If a transparency mask is present, use it directly
3. If clipping has to be done and a transparency mask
is present: like 1.) but the transparency mask is used
for the XSetStipple() call. Therefore the following
filling of the clipping rectangle takes into account
the given transparency mask.