Revert a couple of unintended changes

This commit is contained in:
Kim Woelders 2022-04-07 12:36:28 +02:00
parent 1582453d76
commit c40c222b9c
2 changed files with 5 additions and 5 deletions

View File

@ -7,7 +7,7 @@
#define VAR_CHAR 1
#define VAR_PTR 2
#define ASSIGN_uint8_t( var, v ) if( strcmp( ptr->key, var ) == 0 ) v = (uint8_t)atoi( (char *)ptr->data )
#define ASSIGN_DATA8( var, v ) if( strcmp( ptr->key, var ) == 0 ) v = (uint8_t)atoi( (char *)ptr->data )
#define ASSIGN_INT(k, v) \
if (!strcmp((k), ptr->key)) { \
if (ptr->type == VAR_PTR) { \

View File

@ -53,14 +53,14 @@ exec(char *filter, void *im, IFunctionParam * params)
for (ptr = params; ptr; ptr = ptr->next)
{
ASSIGN_uint8_t("red", r);
ASSIGN_uint8_t("blue", b);
ASSIGN_uint8_t("green", g);
ASSIGN_DATA8("red", r);
ASSIGN_DATA8("blue", b);
ASSIGN_DATA8("green", g);
ASSIGN_INT("x", x);
ASSIGN_INT("y", y);
ASSIGN_INT("w", w);
ASSIGN_INT("h", h);
ASSIGN_uint8_t("alpha", a);
ASSIGN_DATA8("alpha", a);
}
/*
printf( "Using values red=%d,blue=%d,green=%d,x=%d,y=%d,height=%d,width=%d,alpha=%d\n", r,b,g,x,y,w,h,a );