From: Thadeu Lima de Souza Cascardo Date: Sat, 16 Aug 2008 16:59:48 +0000 (-0300) Subject: Added a macro for frames per face X-Git-Url: http://git.cascardo.eti.br/?p=cascardo%2Fmovie.git;a=commitdiff_plain;h=24dfd5c23bd1cf944fc3bb9cc5b188a9a60f5801 Added a macro for frames per face --- diff --git a/gdk.c b/gdk.c index 8fc579c..d364a27 100644 --- 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);