Fix integer overflow I forgot this piece in 779618e45d4571bb6a4866aa2e398780f4b4da5d.
Mathias Gumz akira at fluxbox dot org
1 files changed,
1 insertions(+),
1 deletions(-)
jump to
M
src/FbTk/TextureRender.cc
→
src/FbTk/TextureRender.cc
@@ -513,7 +513,7 @@ // 'a' and 'b'. if the point is on the same side for both 'a' and
// '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];