Fix integer overflow

I forgot this piece in 779618e45d.
This commit is contained in:
Mathias Gumz 2013-02-06 08:07:30 +01:00
parent a4a4bca745
commit 41a2060720

View file

@ -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];