From 4d90dd0aad8d6ebd157f1ce1eac9bcc71fa34f5f Mon Sep 17 00:00:00 2001 From: Niels Elburg Date: Thu, 13 Jan 2005 12:58:03 +0000 Subject: [PATCH] fixed setting of default values git-svn-id: svn://code.dyne.org/veejay/trunk@142 eb8d1916-c9e9-0310-b8de-cf0c9472ead5 --- veejay-current/libvje/effects/ghost.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/veejay-current/libvje/effects/ghost.c b/veejay-current/libvje/effects/ghost.c index c1d4b169..0bd71347 100644 --- a/veejay-current/libvje/effects/ghost.c +++ b/veejay-current/libvje/effects/ghost.c @@ -38,7 +38,6 @@ vj_effect *ghost_init(int w, int h) ve->limits[0][0] = 16; ve->limits[1][0] = 255; // opacity ve->defaults[0] = 134; - ve->defaults[1] = 55; ve->description = "Motion Ghost"; ve->sub_format = 1; ve->extra_frame = 0; @@ -115,7 +114,9 @@ void ghost_apply(VJFrame *frame, for(i = 0; i < len; i ++ ) bm[i] = ( abs(srcY[i] - dY[i]) > 1 ? 0xff: 0x0); - for( y = width; y < len; y += width ) + + + for( y = width; y < (len-width); y += width ) { for( x = 1; x < width - 1; x ++ ) {