kwo pushed a commit to branch master.

http://git.enlightenment.org/legacy/imlib2.git/commit/?id=c40c222b9cb8128841a74f337ad4f9d6c34499fd

commit c40c222b9cb8128841a74f337ad4f9d6c34499fd
Author: Kim Woelders <[email protected]>
Date:   Thu Apr 7 12:36:28 2022 +0200

    Revert a couple of unintended changes
---
 src/lib/script.h                  | 2 +-
 src/modules/filters/filter_test.c | 8 ++++----
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/lib/script.h b/src/lib/script.h
index 989283b..946c708 100644
--- a/src/lib/script.h
+++ b/src/lib/script.h
@@ -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) {                \
diff --git a/src/modules/filters/filter_test.c 
b/src/modules/filters/filter_test.c
index 810c7cc..6c76002 100644
--- a/src/modules/filters/filter_test.c
+++ b/src/modules/filters/filter_test.c
@@ -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 );

-- 


Reply via email to