aboutsummaryrefslogtreecommitdiffstats
path: root/widget_text.c
diff options
context:
space:
mode:
authorreinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2004-11-29 04:42:07 +0000
committerreinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2004-11-29 04:42:07 +0000
commitbb2c0c5879c973f658a823df7c979409c1caa76c (patch)
tree44f42fa3c9d46b7dec5d9fcc99273c7d88515f74 /widget_text.c
parentb1946ed6796f73cbcff9f131337f2fc0f41205a5 (diff)
downloadlcd4linux-bb2c0c5879c973f658a823df7c979409c1caa76c.tar.gz
[lcd4linux @ 2004-11-29 04:42:06 by reinelt]
removed the 99999 msec limit on widget update time (thanks to Petri Damsten) git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@496 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
Diffstat (limited to 'widget_text.c')
-rw-r--r--widget_text.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/widget_text.c b/widget_text.c
index 29bcb69..949b82e 100644
--- a/widget_text.c
+++ b/widget_text.c
@@ -1,4 +1,4 @@
-/* $Id: widget_text.c,v 1.19 2004/06/26 12:05:00 reinelt Exp $
+/* $Id: widget_text.c,v 1.20 2004/11/29 04:42:07 reinelt Exp $
*
* simple text widget handling
*
@@ -21,6 +21,9 @@
*
*
* $Log: widget_text.c,v $
+ * Revision 1.20 2004/11/29 04:42:07 reinelt
+ * removed the 99999 msec limit on widget update time (thanks to Petri Damsten)
+ *
* Revision 1.19 2004/06/26 12:05:00 reinelt
*
* uh-oh... the last CVS log message messed up things a lot...
@@ -365,7 +368,7 @@ int widget_text_init (WIDGET *Self)
Compile (Text->expression, &Text->tree);
/* field width, default 10 */
- cfg_number (section, "width", 10, 0, 99999, &(Text->width));
+ cfg_number (section, "width", 10, 0, -1, &(Text->width));
/* precision: number of digits after the decimal point (default: none) */
/* Note: this is the *maximum* precision on small values, */
@@ -397,13 +400,13 @@ int widget_text_init (WIDGET *Self)
free (c);
/* update interval (msec), default 1 sec, 0 stands for never */
- cfg_number (section, "update", 1000, 0, 99999, &(Text->update));
+ cfg_number (section, "update", 1000, 0, -1, &(Text->update));
/* limit update interval to min 10 msec */
if (Text->update > 0 && Text->update < 10) Text->update = 10;
/* marquee scroller speed: interval (msec), default 500msec */
if (Text->align==ALIGN_MARQUEE) {
- cfg_number (section, "speed", 500, 10, 99999, &(Text->speed));
+ cfg_number (section, "speed", 500, 10, -1, &(Text->speed));
}
/* buffer */