Added a macro for frames per face
authorThadeu Lima de Souza Cascardo <cascardo@holoscopio.com>
Sat, 16 Aug 2008 16:59:48 +0000 (13:59 -0300)
committerThadeu Lima de Souza Cascardo <cascardo@holoscopio.com>
Sat, 16 Aug 2008 16:59:48 +0000 (13:59 -0300)
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);