diff --git a/veejay-current/veejay-server/libvje/effects/dither.c b/veejay-current/veejay-server/libvje/effects/dither.c index 56fcabb2..43511fd1 100644 --- a/veejay-current/veejay-server/libvje/effects/dither.c +++ b/veejay-current/veejay-server/libvje/effects/dither.c @@ -17,12 +17,10 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307 , USA. */ -#include -#include -#include + +#include "common.h" #include #include "dither.h" -#include "common.h" vj_effect *dither_init(int w, int h) { @@ -60,8 +58,8 @@ void dither_apply(VJFrame *frame, int size, int random_on) long int dith[size][size]; long int i, j, d, v, l, m; uint8_t *Y = frame->data[0]; - int width, height; - width=frame->width; height = frame->height; + const unsigned int width = frame->width; + const unsigned int height = frame->height; if( last_size != size || random_on ) { diff --git a/veejay-current/veejay-server/libvje/effects/dither.h b/veejay-current/veejay-server/libvje/effects/dither.h index 6625c55e..15c13cee 100644 --- a/veejay-current/veejay-server/libvje/effects/dither.h +++ b/veejay-current/veejay-server/libvje/effects/dither.h @@ -20,10 +20,6 @@ #ifndef DITHER_H #define DITHER_H -#include -#include -#include - vj_effect *dither_init(); void dither_apply(VJFrame *frame, int size, int n); #endif