summaryrefslogtreecommitdiff
path: root/src/FbTk
diff options
context:
space:
mode:
Diffstat (limited to 'src/FbTk')
-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);