Effects/LayerMover.cpp

changeset 21
016809939f8a
parent 20
cc549c0f8ebd
child 30
5a1daa2eb409
--- a/Effects/LayerMover.cpp	Thu Apr 21 01:53:15 2011 +0000
+++ b/Effects/LayerMover.cpp	Thu Apr 21 13:25:39 2011 +0000
@@ -7,8 +7,8 @@
 		current=from;
 		to=To;
 
-		Target->X=from.x;
-		Target->Y=from.y;
+		Target->X=(int)from.x;
+		Target->Y=(int)from.y;
 		this->progressed=0;
 
 		if(Time) {
@@ -19,8 +19,8 @@
 			speed.x=0;
 			speed.y=0;
 			current=from=to;
-			Target->X=to.x;
-			Target->Y=to.y;
+			Target->X=(int)to.x;
+			Target->Y=(int)to.y;
 		}
 	}
 
@@ -39,7 +39,7 @@
 			if(current.x>to.x)
 				current.x=to.x;
 		}
-		Target->X=current.x;
+		Target->X=(int)current.x;
 
 
 		if(from.y>to.y) {
@@ -52,7 +52,7 @@
 			if(current.y>to.y)
 				current.y=to.y;
 		}
-		Target->Y=current.y;
+		Target->Y=(int)current.y;
 
 	}
 } }

mercurial