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
This commit is contained in:
michael
2007-02-25 12:27:26 +00:00
parent 51db519d96
commit 3c851dd7e0
51 changed files with 1897 additions and 1890 deletions

View File

@@ -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,
};