kwo pushed a commit to branch master. http://git.enlightenment.org/e16/e16.git/commit/?id=02568bb00cd326033c76ce65df67fea57ab59edb
commit 02568bb00cd326033c76ce65df67fea57ab59edb Author: Kim Woelders <k...@woelders.dk> Date: Tue Dec 8 19:32:37 2020 +0100 Remove obsolete color modifier functions Unused since the pseudotransparency stuff was removed. --- src/eimage.c | 46 ---------------------------------------------- src/eimage.h | 10 ---------- 2 files changed, 56 deletions(-) diff --git a/src/eimage.c b/src/eimage.c index 4d8ca53f..4cb8dbdb 100644 --- a/src/eimage.c +++ b/src/eimage.c @@ -309,28 +309,6 @@ EImageBlend(EImage * im, EImage * src, int flags, _EImageFlagsReset(); } -void -EImageBlendCM(EImage * im, EImage * src, EImageColorModifier * icm) -{ - int w, h, iw, ih; - - imlib_context_set_image(src); - iw = imlib_image_get_width(); - ih = imlib_image_get_height(); - imlib_context_set_image(im); - w = imlib_image_get_width(); - h = imlib_image_get_height(); - - imlib_context_set_blend(1); - if (icm) - imlib_context_set_color_modifier(icm); - imlib_context_set_operation(IMLIB_OP_COPY); - imlib_blend_image_onto_image(src, 0, 0, 0, iw, ih, 0, 0, w, h); - imlib_context_set_blend(0); - if (icm) - imlib_context_set_color_modifier(NULL); -} - void EImageTile(EImage * im, EImage * tile, int flags, int tw, int th, int dx, int dy, int dw, int dh, int ox, int oy) @@ -682,27 +660,3 @@ PmapMaskFree(PmapMask * pmm) pmm->mask = 0; } } - -EImageColorModifier * -EImageColorModifierCreate(void) -{ - return imlib_create_color_modifier(); -} - -void -EImageColorModifierSetTables(EImageColorModifier * icm, - unsigned char *r, unsigned char *g, - unsigned char *b, unsigned char *a) -{ - if (!icm) - return; - - imlib_context_set_color_modifier(icm); -#if 0 /* Useful in this context? */ - imlib_modify_color_modifier_gamma(0.5); - imlib_modify_color_modifier_brightness(0.5); - imlib_modify_color_modifier_contrast(0.5); -#endif - imlib_set_color_modifier_tables(r, g, b, a); - imlib_context_set_color_modifier(NULL); -} diff --git a/src/eimage.h b/src/eimage.h index ae760318..7b5fc944 100644 --- a/src/eimage.h +++ b/src/eimage.h @@ -26,7 +26,6 @@ #include "xtypes.h" typedef void EImage; -typedef void EImageColorModifier; typedef struct { int left, right, top, bottom; @@ -84,8 +83,6 @@ void EImageBlend(EImage * im, EImage * src, int flags, int sx, int sy, int sw, int sh, int dx, int dy, int dw, int dh, int merge_alpha); -void EImageBlendCM(EImage * im, EImage * src, - EImageColorModifier * icm); void EImageTile(EImage * im, EImage * tile, int flags, int tw, int th, int dx, int dy, int dw, int dh, int ox, int oy); @@ -110,13 +107,6 @@ void EImagePixmapsFree(EX_Pixmap pmap, EX_Pixmap mask); void EImageApplyToWin(EImage * im, Win win, int flags, int w, int h); -EImageColorModifier *EImageColorModifierCreate(void); -void EImageColorModifierSetTables(EImageColorModifier * icm, - unsigned char *r, - unsigned char *g, - unsigned char *b, - unsigned char *a); - void ScaleRect(Win wsrc, EX_Drawable src, Win wdst, EX_Pixmap dst, int sx, int sy, int sw, int sh, int dx, int dy, int dw, int dh, int flags); --