kirby b4afa5aa97 - remove trailing whitespaces
- add rcs id to patch
2016-01-28 14:00:07 +00:00

26 lines
822 B
Plaintext

$OpenBSD: patch-Path_cpp,v 1.3 2016/01/28 14:00:07 kirby Exp $
--- Path.cpp.orig Thu Dec 6 10:37:20 2012
+++ Path.cpp Thu Dec 6 10:39:15 2012
@@ -90,8 +90,8 @@ Path& Path::rotate(const b2Mat22& rot)
for (int i=0;i<size();i++) {
//at(i) = b2Mul( rot, at(i) );
- at(i) = Vec2( j1 * at(i).x + j2 * at(i).y,
- k1 * at(i).x + k2 * at(i).y );
+ at(i) = Vec2( static_cast<int>(j1 * at(i).x + j2 * at(i).y),
+ static_cast<int>(k1 * at(i).x + k2 * at(i).y) );
}
return *this;
}
@@ -99,8 +99,8 @@ Path& Path::rotate(const b2Mat22& rot)
Path& Path::scale(float32 factor)
{
for (int i=0;i<size();i++) {
- at(i).x = at(i).x * factor;
- at(i).y = at(i).y * factor;
+ at(i).x = static_cast<int>(at(i).x * factor);
+ at(i).y = static_cast<int>(at(i).y * factor);
}
return *this;
}