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
This commit is contained in:
Tom Gilbert 2000-05-28 11:17:27 +00:00
parent 180e91cc1d
commit 8deb1b493e
1 changed files with 5 additions and 1 deletions

View File

@ -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 )
{