From d050c6d0a6a103d743bd5c6b75eb6f0a92a204cb Mon Sep 17 00:00:00 2001 From: fluxgen Date: Tue, 13 May 2003 20:50:56 +0000 Subject: minor fix for alpha 0 --- src/FbTk/Transparent.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/FbTk/Transparent.cc b/src/FbTk/Transparent.cc index 5072a81..ed50e9e 100644 --- a/src/FbTk/Transparent.cc +++ b/src/FbTk/Transparent.cc @@ -19,7 +19,7 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: Transparent.cc,v 1.4 2003/05/07 09:31:29 fluxgen Exp $ +// $Id: Transparent.cc,v 1.5 2003/05/13 20:50:56 fluxgen Exp $ #include "Transparent.hh" #include "App.hh" @@ -79,6 +79,8 @@ Picture createAlphaPic(Window drawable, unsigned char alpha) { color.blue = 0xFF; color.green = 0xFF; color.alpha = ((unsigned short) (255 * alpha) << 8); + if (alpha == 0) + color.alpha = 0xFF00; XRenderFillRectangle(disp, PictOpSrc, alpha_pic, &color, 0, 0, 1, 1); -- cgit v0.11.2