]> git.webhop.me Git - lcd4linux.git/commitdiff
[lcd4linux @ 2006-02-27 07:53:52 by reinelt]
authorreinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>
Mon, 27 Feb 2006 07:53:52 +0000 (07:53 +0000)
committerreinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>
Mon, 27 Feb 2006 07:53:52 +0000 (07:53 +0000)
some more graphic issues fixed

git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@650 3ae390bd-cb1e-0410-b409-cd5a39f66f1f

drv_generic_graphic.c
layout.h
lcd4linux.conf.sample

index a2dcda49e0bd19f98272e7c7f709e47c1f50e23c..e56401fd61a53ef11d85164de3b8d1c5ac61f7ef 100644 (file)
@@ -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;
 
index 0e4214acee64bf41d55181d9f50ce091c4582bad..6255b28e8f5c354a53a29f176559ea5b4abddd4d 100644 (file)
--- a/layout.h
+++ b/layout.h
@@ -1,4 +1,4 @@
-/* $Id: layout.h,v 1.4 2006/02/07 05:36:13 reinelt Exp $
+/* $Id: layout.h,v 1.5 2006/02/27 07:53:52 reinelt Exp $
  *
  * new layouter framework
  *
@@ -23,6 +23,9 @@
  *
  *
  * $Log: layout.h,v $
+ * Revision 1.5  2006/02/27 07:53:52  reinelt
+ * some more graphic issues fixed
+ *
  * Revision 1.4  2006/02/07 05:36:13  reinelt
  * Layers added to Layout
  *
@@ -45,7 +48,7 @@
 #define _LAYOUT_H_
 
 /* number of layers */
-#define LAYERS 4
+#define LAYERS 3
 
 int layout_init(const char *section);
 
index 0f74bf551b90c327e677157352a1acd1df4ee747..a25c2bedf31e3c70c5e87be8c825e2bf94759f7f 100644 (file)
@@ -827,7 +827,7 @@ Widget GPO_Test255 {
 
 Widget ImageTest {
     class 'Image'
-    file '/home/michi/lcd4linux.png'
+    file 'Michi.png'
     update 1000
     visible 1
 }
@@ -890,9 +890,13 @@ Layout TestLayer {
 }
 
 Layout TestImage {
-    Row1 {
+    Row4 {
        Col1  'OS'
     }
+    Row2 {
+       Col1  'CPU'
+       Col10 'RAM'
+    }
     Layer 2 {
        X1.Y1 'ImageTest'
     }