]> git.webhop.me Git - lcd4linux.git/commitdiff
[lcd4linux @ 2005-11-06 09:54:43 by reinelt]
authorreinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>
Sun, 6 Nov 2005 09:54:43 +0000 (09:54 +0000)
committerreinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>
Sun, 6 Nov 2005 09:54:43 +0000 (09:54 +0000)
fixed icon size removed, uses XRES & YRES (I hope this doesn't lead to problemes...)

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

drv_generic_text.c
widget_icon.c

index 79a89ffa408f460fd326f0b105d39431df068700..bc18d74c9b2d80ff4cba45e194a29b7737d1b2a2 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: drv_generic_text.c,v 1.28 2005/08/22 05:44:43 reinelt Exp $
+/* $Id: drv_generic_text.c,v 1.29 2005/11/06 09:54:43 reinelt Exp $
  *
  * generic driver helper for text-based displays
  *
@@ -23,6 +23,9 @@
  *
  *
  * $Log: drv_generic_text.c,v $
+ * Revision 1.29  2005/11/06 09:54:43  reinelt
+ * fixed icon size removed, uses XRES & YRES (I hope this doesn't lead to problemes...)
+ *
  * Revision 1.28  2005/08/22 05:44:43  reinelt
  * new driver 'WincorNixdorf'
  * some fixes to the bar code
  *   renders Text widget into framebuffer
  *   calls drv_generic_text_real_write()
  *
- * int drv_generic_text_icon_init       (void);
+ * int drv_generic_text_icon_init (void);
  *   initializes the generic icon driver
  *   
  * int drv_generic_text_icon_draw (WIDGET *W);
@@ -743,7 +746,7 @@ static void drv_generic_text_bar_create_segments(void)
                    break;
                /* hollow style, val(1,2) == 1, like '[' */
 /*                        if (l1 == 1 && l2 == 1 && Segment[i].style == STYLE_FIRST && BarFB[n].style == STYLE_HOLLOW)
-                                                                                                                                                                                                                                                                                                                                                                                             break;
+                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             break;
 *//* hollow style, val(1,2) == 1, like ']' */
 /*                        if (l1 == 1 && l2 == 1 && Segment[i].style == STYLE_LAST && BarFB[n].style == STYLE_HOLLOW)
                               break;
@@ -869,8 +872,7 @@ static void drv_generic_text_bar_pack_segments(void)
        }
 #if 0
        debug("pack_segment: n=%d i=%d j=%d min=%d", nSegment, pack_i, pack_j, min);
-       debug("Pack_segment: i1=%d i2=%d j1=%d j2=%d\n", 
-             Segment[pack_i].val1, Segment[pack_i].val2, Segment[pack_j].val1, Segment[pack_j].val2);
+       debug("Pack_segment: i1=%d i2=%d j1=%d j2=%d\n", Segment[pack_i].val1, Segment[pack_i].val2, Segment[pack_j].val1, Segment[pack_j].val2);
 #endif
 
        nSegment--;
index 03416894b66e0051d2da196155f87b1e0a5fba5f..81a6867a1b0d8e4c329d502742c154814225eb3a 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: widget_icon.c,v 1.18 2005/11/06 09:17:20 reinelt Exp $
+/* $Id: widget_icon.c,v 1.19 2005/11/06 09:54:43 reinelt Exp $
  *
  * icon widget handling
  *
@@ -21,6 +21,9 @@
  *
  *
  * $Log: widget_icon.c,v $
+ * Revision 1.19  2005/11/06 09:54:43  reinelt
+ * fixed icon size removed, uses XRES & YRES (I hope this doesn't lead to problemes...)
+ *
  * Revision 1.18  2005/11/06 09:17:20  reinelt
  * re-use icons (thanks to Jesus de Santos Garcia)
  *
 #include <dmalloc.h>
 #endif
 
-/* icons always are 8 pixels high  */
-#define YRES 8
+/* icons size is same as char size */
+extern int XRES, YRES;
 
 static void widget_icon_read_bitmap(const char *section, WIDGET_ICON * Icon)
 {