diff options
author | reinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f> | 2006-04-15 05:22:52 +0000 |
---|---|---|
committer | reinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f> | 2006-04-15 05:22:52 +0000 |
commit | 61f1df17be9215aa2e2443baa8aa02aca9d09ed0 (patch) | |
tree | 1393a83355222e6ae3606f212c6f5101e703d34b /widget_image.c | |
parent | 952d2e102ce7c167e5b88395b01692839816c425 (diff) | |
download | lcd4linux-61f1df17be9215aa2e2443baa8aa02aca9d09ed0.tar.gz |
[lcd4linux @ 2006-04-15 05:22:52 by reinelt]
mpd plugin from Stefan Kuhne
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@658 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
Diffstat (limited to 'widget_image.c')
-rw-r--r-- | widget_image.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/widget_image.c b/widget_image.c index 9ce0ebd..63e20ad 100644 --- a/widget_image.c +++ b/widget_image.c @@ -1,4 +1,4 @@ -/* $Id: widget_image.c,v 1.6 2006/04/09 14:17:50 reinelt Exp $ +/* $Id: widget_image.c,v 1.7 2006/04/15 05:22:52 reinelt Exp $ * * image widget handling * @@ -21,6 +21,9 @@ * * * $Log: widget_image.c,v $ + * Revision 1.7 2006/04/15 05:22:52 reinelt + * mpd plugin from Stefan Kuhne + * * Revision 1.6 2006/04/09 14:17:50 reinelt * autoconf/library fixes, image and graphic display inversion * @@ -157,9 +160,9 @@ static void widget_image_render(const char *Name, WIDGET_IMAGE * Image) /* our alpha is 0 (transparent) to 255 (opaque) */ Image->bitmap[i].A = (a == 127) ? 0 : 255 - 2 * a; if (Image->inverted) { - Image->bitmap[i].R = 255 - Image->bitmap[i].R; - Image->bitmap[i].G = 255 - Image->bitmap[i].G; - Image->bitmap[i].B = 255 - Image->bitmap[i].B; + Image->bitmap[i].R = 255 - Image->bitmap[i].R; + Image->bitmap[i].G = 255 - Image->bitmap[i].G; + Image->bitmap[i].B = 255 - Image->bitmap[i].B; } } } @@ -212,7 +215,6 @@ static void widget_image_update(void *Self) Image->inverted = Image->inverted > 0; DelResult(&result); } - #ifdef WITH_GD /* render image into bitmap */ widget_image_render(W->name, Image); |