forked from old/legacy-imlib2
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:
parent
180e91cc1d
commit
8deb1b493e
|
@ -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 )
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue