aboutsummaryrefslogtreecommitdiffstats
path: root/drv_generic_graphic.c
diff options
context:
space:
mode:
authorreinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2006-02-27 07:53:52 +0000
committerreinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2006-02-27 07:53:52 +0000
commitf1d2a23bac95450864d105e0f51d3e0cc9975aa9 (patch)
tree9350f9a6ac144c9b83cca97101215c2d8052bd1f /drv_generic_graphic.c
parent1d817f70c99de8cae0776ceb6c028b7af9ebe2a5 (diff)
downloadlcd4linux-f1d2a23bac95450864d105e0f51d3e0cc9975aa9.tar.gz
[lcd4linux @ 2006-02-27 07:53:52 by reinelt]
some more graphic issues fixed git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@650 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
Diffstat (limited to 'drv_generic_graphic.c')
-rw-r--r--drv_generic_graphic.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/drv_generic_graphic.c b/drv_generic_graphic.c
index a2dcda4..e56401f 100644
--- a/drv_generic_graphic.c
+++ b/drv_generic_graphic.c
@@ -23,6 +23,9 @@
*
*
* $Log: drv_generic_graphic.c,v $
+ * Revision 1.25 2006/02/27 07:53:52 reinelt
+ * some more graphic issues fixed
+ *
* Revision 1.24 2006/02/27 06:15:55 reinelt
* indent...
*
@@ -175,7 +178,7 @@ int XRES, YRES; /* pixels of one char cell */
/* pixel colors */
RGBA FG_COL = { R: 0x00, G: 0x00, B: 0x00, A:0xff };
RGBA BG_COL = { R: 0xff, G: 0xff, B: 0xff, A:0xff };
-RGBA BL_COL = { R: 0x00, G: 0x00, B: 0x00, A:0x00 };
+RGBA BL_COL = { R: 0xff, G: 0xff, B: 0xff, A:0x00 };
RGBA NO_COL = { R: 0x00, G: 0x00, B: 0x00, A:0x00 };
static char *Section = NULL;
@@ -632,14 +635,14 @@ int drv_generic_graphic_init(const char *section, const char *driver)
if (color)
free(color);
- color = cfg_get(Section, "background", "ffffffff");
+ color = cfg_get(Section, "background", "ffffff00");
if (color2RGBA(color, &BG_COL) < 0) {
error("%s: ignoring illegal color '%s'", Driver, color);
}
if (color)
free(color);
- color = cfg_get(Section, "basecolor", "00000000");
+ color = cfg_get(Section, "basecolor", "ffffff");
if (color2RGBA(color, &BL_COL) < 0) {
error("%s: ignoring illegal color '%s'", Driver, color);
}
@@ -677,10 +680,7 @@ int drv_generic_graphic_clear(void)
{
int i, l;
- for (i = 0; i < LCOLS * LROWS; i++)
- drv_generic_graphic_FB[LAYERS - 1][i] = BG_COL;
-
- for (l = 0; l < LAYERS - 1; l++)
+ for (l = 0; l < LAYERS; l++)
for (i = 0; i < LCOLS * LROWS; i++)
drv_generic_graphic_FB[l][i] = NO_COL;