From 41a206072051637e7ac49d89259b94885e703acd Mon Sep 17 00:00:00 2001
From: Mathias Gumz <akira at fluxbox dot org>
Date: Wed, 6 Feb 2013 08:07:30 +0100
Subject: Fix integer overflow

I forgot this piece in 779618e45d4571bb6a4866aa2e398780f4b4da5d.
---
 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 ce1613a..7abc436 100644
--- a/src/FbTk/TextureRender.cc
+++ b/src/FbTk/TextureRender.cc
@@ -513,7 +513,7 @@ void renderPipeCrossGradient(bool interlaced,
             // 'b' (a.cross() is equal to b.cross()) then use the x_gradient,
             // otherwise use y_gradient
 
-            if ((a.cross(x, y) * b.cross(x, b.y + y)) > 0) {
+            if (sign(a.cross(x, y)) * sign(b.cross(x, b.y + y)) > 0) {
                 rgba[i] = x_gradient[x];
             } else {
                 rgba[i] = y_gradient[y];
-- 
cgit v0.11.2