aboutsummaryrefslogtreecommitdiffstats
path: root/widget_image.c
diff options
context:
space:
mode:
authormichael <michael@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2007-02-25 12:27:26 +0000
committermichael <michael@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2007-02-25 12:27:26 +0000
commit3c851dd7e04640567ad5a738c43727bb40e9103e (patch)
treed6d80e104d74d26d5d8a67391958e8e362bf5633 /widget_image.c
parent51db519d969ceb3fb82effb49126314ca1d917b0 (diff)
downloadlcd4linux-3c851dd7e04640567ad5a738c43727bb40e9103e.tar.gz
lots of compiler warnings removed, C++-style comments removed, changed struc initialisation from 'field:value' to '.field=value'
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@771 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
Diffstat (limited to 'widget_image.c')
-rw-r--r--widget_image.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/widget_image.c b/widget_image.c
index 6320e44..68fadd0 100644
--- a/widget_image.c
+++ b/widget_image.c
@@ -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,
};