aboutsummaryrefslogtreecommitdiffstats
path: root/widget_image.c
diff options
context:
space:
mode:
authorreinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2006-04-15 05:22:52 +0000
committerreinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2006-04-15 05:22:52 +0000
commit61f1df17be9215aa2e2443baa8aa02aca9d09ed0 (patch)
tree1393a83355222e6ae3606f212c6f5101e703d34b /widget_image.c
parent952d2e102ce7c167e5b88395b01692839816c425 (diff)
downloadlcd4linux-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.c12
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);