From b7e84104a695bb3628e482c4be93f6f516e46e7d Mon Sep 17 00:00:00 2001
From: Mathias Gumz <akira at fluxbox dot org>
Date: Tue, 22 Feb 2011 15:53:18 +0100
Subject: bugfix: render 'sunken' gradients correctly

---
 src/FbTk/TextureRender.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/FbTk/TextureRender.cc b/src/FbTk/TextureRender.cc
index c66dfa7..89a88ea 100644
--- a/src/FbTk/TextureRender.cc
+++ b/src/FbTk/TextureRender.cc
@@ -1457,7 +1457,7 @@ Pixmap TextureRender::renderGradient(const FbTk::Texture &texture) {
     // invert our width and height if necessary
     translateSize(orientation, width, height);
 
-    bool inverted = texture.type() & Texture::SUNKEN;
+    bool inverted = texture.type() & Texture::INVERT;
     const Color* from = &(texture.color());
     const Color* to = &(texture.colorTo());
 
-- 
cgit v0.11.2