X-Git-Url: http://git.cascardo.eti.br/?a=blobdiff_plain;f=gdk.c;h=d364a279d8a318876a804a8475447d502019c105;hb=8465c163fedbf69def8931cf3a764dcd9256f9b9;hp=3bb6ca950f5c1f6a980d73899bdea4e1e218d806;hpb=751fdaa177d280e82ffcc6919c109f01bebd144f;p=cascardo%2Fmovie.git diff --git a/gdk.c b/gdk.c index 3bb6ca9..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); + 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);