Rescale points and use its individual scale to show image
[cascardo/movie.git] / movie.c
diff --git a/movie.c b/movie.c
index 8fbbf6a..4ff67db 100644 (file)
--- a/movie.c
+++ b/movie.c
@@ -102,3 +102,18 @@ ReadPoints (char *filename)
   fclose (file);
   return points;
 }
+
+void
+rescale_points (GArray *points)
+{
+  Point *point;
+  int i;
+  for (i = 0; i < points->len; i++)
+    {
+      point = &(g_array_index (points, Point, i));
+      point->rx = 4.0;
+      point->ry = 4.0;
+      point->x *= point->rx;
+      point->y *= point->ry;
+    }
+}