Fix warnings between double <-> int conversion

This commit is contained in:
David Capello 2016-05-04 09:36:05 -03:00
parent 0f3dea233b
commit 5b51e281d3

View File

@ -328,10 +328,10 @@ void PixelsMovement::moveImage(const gfx::Point& pos, MoveModifier moveModifier)
h = 1.0;
}
a.x = (a.x-pivot.x)*(1.0+dx/w) + pivot.x;
a.y = (a.y-pivot.y)*(1.0+dy/h) + pivot.y;
b.x = (b.x-pivot.x)*(1.0+dx/w) + pivot.x;
b.y = (b.y-pivot.y)*(1.0+dy/h) + pivot.y;
a.x = int((a.x-pivot.x)*(1.0+dx/w) + pivot.x);
a.y = int((a.y-pivot.y)*(1.0+dy/h) + pivot.y);
b.x = int((b.x-pivot.x)*(1.0+dx/w) + pivot.x);
b.y = int((b.y-pivot.y)*(1.0+dy/h) + pivot.y);
}
// Do not use "gfx::Rect(a, b)" here because if a > b we want to