aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk/TextureRender.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/FbTk/TextureRender.cc')
-rw-r--r--src/FbTk/TextureRender.cc2
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];