aboutsummaryrefslogtreecommitdiffstats
path: root/widget_icon.c
diff options
context:
space:
mode:
authorreinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2004-02-07 13:45:23 +0000
committerreinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2004-02-07 13:45:23 +0000
commit638d38bae126f1c2a7c27b39c2903575aada19c6 (patch)
tree1fbe54ecc8917932b023451d385bf947a3415a15 /widget_icon.c
parent7cf5b8818b8e4ff513b0c939bac79e66f3b00cef (diff)
downloadlcd4linux-638d38bae126f1c2a7c27b39c2903575aada19c6.tar.gz
[lcd4linux @ 2004-02-07 13:45:23 by reinelt]
icon visibility patch #2 from Xavier git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@358 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
Diffstat (limited to 'widget_icon.c')
-rw-r--r--widget_icon.c13
1 files changed, 4 insertions, 9 deletions
diff --git a/widget_icon.c b/widget_icon.c
index 5420f14..3c631d9 100644
--- a/widget_icon.c
+++ b/widget_icon.c
@@ -1,4 +1,4 @@
-/* $Id: widget_icon.c,v 1.5 2004/02/04 19:11:44 reinelt Exp $
+/* $Id: widget_icon.c,v 1.6 2004/02/07 13:45:23 reinelt Exp $
*
* icon widget handling
*
@@ -21,6 +21,9 @@
*
*
* $Log: widget_icon.c,v $
+ * Revision 1.6 2004/02/07 13:45:23 reinelt
+ * icon visibility patch #2 from Xavier
+ *
* Revision 1.5 2004/02/04 19:11:44 reinelt
* icon visibility patch from Xavier
*
@@ -128,14 +131,10 @@ void widget_icon_update (void *Self)
DelResult(&result);
}
- if (Icon->visible) {
// rotate icon bitmap
Icon->curmap++;
if (Icon->curmap >= Icon->maxmap)
Icon->curmap=0;
- } else {
- Icon->curmap=0; // FIXME : put an emply map here !
- }
// finally, draw it!
if (W->class->draw)
@@ -174,10 +173,6 @@ int widget_icon_init (WIDGET *Self)
error ("Icon %s has no speed, using '100'", Self->name);
Icon->speed_expr="100";
}
- if (Icon->visible_expr==NULL || *Icon->visible_expr=='\0') {
- error ("Icon %s has no visible atribute, using '1'", Self->name);
- Icon->visible_expr="1";
- }
// read bitmap
widget_icon_read_bitmap (section, Icon);