parent
a4a4bca745
commit
41a2060720
1 changed files with 1 additions and 1 deletions
|
@ -513,7 +513,7 @@ void renderPipeCrossGradient(bool interlaced,
|
||||||
// 'b' (a.cross() is equal to b.cross()) then use the x_gradient,
|
// 'b' (a.cross() is equal to b.cross()) then use the x_gradient,
|
||||||
// otherwise use y_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];
|
rgba[i] = x_gradient[x];
|
||||||
} else {
|
} else {
|
||||||
rgba[i] = y_gradient[y];
|
rgba[i] = y_gradient[y];
|
||||||
|
|
Loading…
Reference in a new issue