diff options
author | Reinhard Tartler <siretart@tauware.de> | 2007-04-30 09:35:54 +0200 |
---|---|---|
committer | Reinhard Tartler <siretart@tauware.de> | 2007-04-30 09:35:54 +0200 |
commit | 874ef72c5b807b61bc53dbaa0fa623b40bff1736 (patch) | |
tree | 3c44151e2132fa82d3e7eef2aa82eee1c9e1369d /widget_image.c | |
parent | cbaf3ad73900f63eae0add0e33439a1bf04b5a1e (diff) | |
download | lcd4linux-874ef72c5b807b61bc53dbaa0fa623b40bff1736.tar.gz |
new upstream version
Diffstat (limited to '')
-rw-r--r-- | widget_image.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/widget_image.c b/widget_image.c index b2f40b0..d4c78d1 100644 --- a/widget_image.c +++ b/widget_image.c @@ -1,4 +1,4 @@ -/* $Id: widget_image.c 749 2007-01-20 06:37:35Z michael $ +/* $Id: widget_image.c 773 2007-02-25 12:39:09Z michael $ * $URL: https://ssl.bulix.org/svn/lcd4linux/branches/0.10.1/widget_image.c $ * * image widget handling @@ -79,7 +79,7 @@ static void widget_image_render(const char *Name, WIDGET_IMAGE * Image) if (Image->bitmap) { int i; for (i = 0; i < Image->height * Image->width; i++) { - RGBA empty = { R: 0x00, G: 0x00, B: 0x00, A:0x00 }; + RGBA empty = {.R = 0x00,.G = 0x00,.B = 0x00,.A = 0x00 }; Image->bitmap[i] = empty; } } @@ -138,7 +138,7 @@ static void widget_image_render(const char *Name, WIDGET_IMAGE * Image) return; } for (i = 0; i < Image->height * Image->width; i++) { - RGBA empty = { R: 0x00, G: 0x00, B: 0x00, A:0x00 }; + RGBA empty = {.R = 0x00,.G = 0x00,.B = 0x00,.A = 0x00 }; Image->bitmap[i] = empty; } } @@ -282,9 +282,9 @@ int widget_image_quit(WIDGET * Self) WIDGET_CLASS Widget_Image = { - name:"image", - type:WIDGET_TYPE_XY, - init:widget_image_init, - draw:NULL, - quit:widget_image_quit, + .name = "image", + .type = WIDGET_TYPE_XY, + .init = widget_image_init, + .draw = NULL, + .quit = widget_image_quit, }; |