From 8deb1b493e6f6f999d5eae2958448c9b697ad48f Mon Sep 17 00:00:00 2001 From: Tom Gilbert Date: Sun, 28 May 2000 11:17:27 +0000 Subject: [PATCH] Default x,y to 0 and w, h to image dimensions, so if you don't specify, the filter applies to the whole image. SVN revision: 2715 --- filters/filter_test.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/filters/filter_test.c b/filters/filter_test.c index 276ee92..22f6971 100644 --- a/filters/filter_test.c +++ b/filters/filter_test.c @@ -43,11 +43,15 @@ void *exec( char *filter, void *im, pIFunctionParam params ) { Imlib_Color_Modifier cm; DATA8 atab[256]; - int x = 0, y = 0, w = 100, h = 100; + int x = 0, y = 0, w = 0, h = 0; DATA8 r = 255, b = 255, g = 255, a = 255; /* printf( "filter_test.c: tint called\n" ); */ + /* Set friendly defaults */ + imlib_context_set_image( imge ); + w = imlib_image_get_width(); + h = imlib_image_get_height(); for( ptr = params; ptr != NULL; ptr = ptr->next ) {