diff options
author | Mathias Gumz <akira at fluxbox dot org> | 2013-02-06 07:07:30 (GMT) |
---|---|---|
committer | Mathias Gumz <akira at fluxbox dot org> | 2013-02-06 07:07:30 (GMT) |
commit | 41a206072051637e7ac49d89259b94885e703acd (patch) | |
tree | f3007725b7d62c7d46b5f0204ccc50d7e549452f | |
parent | a4a4bca745fc9e5417243be404c77486fcdfe336 (diff) | |
download | fluxbox_pavel-41a206072051637e7ac49d89259b94885e703acd.zip fluxbox_pavel-41a206072051637e7ac49d89259b94885e703acd.tar.bz2 |
Fix integer overflow
I forgot this piece in 779618e45d4571bb6a4866aa2e398780f4b4da5d.
-rw-r--r-- | src/FbTk/TextureRender.cc | 2 |
1 files changed, 1 insertions, 1 deletions
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, | |||
513 | // 'b' (a.cross() is equal to b.cross()) then use the x_gradient, | 513 | // 'b' (a.cross() is equal to b.cross()) then use the x_gradient, |
514 | // otherwise use y_gradient | 514 | // otherwise use y_gradient |
515 | 515 | ||
516 | if ((a.cross(x, y) * b.cross(x, b.y + y)) > 0) { | 516 | if (sign(a.cross(x, y)) * sign(b.cross(x, b.y + y)) > 0) { |
517 | rgba[i] = x_gradient[x]; | 517 | rgba[i] = x_gradient[x]; |
518 | } else { | 518 | } else { |
519 | rgba[i] = y_gradient[y]; | 519 | rgba[i] = y_gradient[y]; |