Added a macro for frames per face
[cascardo/movie.git] / gdk.c
diff --git a/gdk.c b/gdk.c
index 8fc579c..d364a27 100644 (file)
--- a/gdk.c
+++ b/gdk.c
@@ -82,6 +82,8 @@ expose (GtkWidget *widget, GdkEventExpose *event, gpointer data)
   return FALSE;
 }
 
+#define FPF 40
+
 int
 main (int argc, char **argv)
 {
@@ -98,8 +100,8 @@ main (int argc, char **argv)
   else
     filename = argv[1];
   ctx.points = ReadPoints ("pro-gnu");
-  ctx.points = drop_dup_frames (ctx.points, 20);
-  rescale_points (ctx.points, get_scales (20));
+  ctx.points = drop_dup_frames (ctx.points, FPF);
+  rescale_points (ctx.points, get_scales (FPF));
   ctx.picture = gdk_pixbuf_new_from_file (filename, NULL);
   ctx.i = ctx.points->len;
   colorspace = gdk_pixbuf_get_colorspace (ctx.picture);