aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk/Transparent.cc
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2003-05-13 20:50:56 (GMT)
committerfluxgen <fluxgen>2003-05-13 20:50:56 (GMT)
commitd050c6d0a6a103d743bd5c6b75eb6f0a92a204cb (patch)
tree33a3800b6aa6109605f8b8838e9f2a09457e178d /src/FbTk/Transparent.cc
parent041dbad57157b44e73dfb9853c1c4f7458da9bc5 (diff)
downloadfluxbox-d050c6d0a6a103d743bd5c6b75eb6f0a92a204cb.zip
fluxbox-d050c6d0a6a103d743bd5c6b75eb6f0a92a204cb.tar.bz2
minor fix for alpha 0
Diffstat (limited to 'src/FbTk/Transparent.cc')
-rw-r--r--src/FbTk/Transparent.cc4
1 files changed, 3 insertions, 1 deletions
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 @@
19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20// DEALINGS IN THE SOFTWARE. 20// DEALINGS IN THE SOFTWARE.
21 21
22// $Id: Transparent.cc,v 1.4 2003/05/07 09:31:29 fluxgen Exp $ 22// $Id: Transparent.cc,v 1.5 2003/05/13 20:50:56 fluxgen Exp $
23 23
24#include "Transparent.hh" 24#include "Transparent.hh"
25#include "App.hh" 25#include "App.hh"
@@ -79,6 +79,8 @@ Picture createAlphaPic(Window drawable, unsigned char alpha) {
79 color.blue = 0xFF; 79 color.blue = 0xFF;
80 color.green = 0xFF; 80 color.green = 0xFF;
81 color.alpha = ((unsigned short) (255 * alpha) << 8); 81 color.alpha = ((unsigned short) (255 * alpha) << 8);
82 if (alpha == 0)
83 color.alpha = 0xFF00;
82 84
83 XRenderFillRectangle(disp, PictOpSrc, alpha_pic, &color, 85 XRenderFillRectangle(disp, PictOpSrc, alpha_pic, &color,
84 0, 0, 1, 1); 86 0, 0, 1, 1);