From bb2c0c5879c973f658a823df7c979409c1caa76c Mon Sep 17 00:00:00 2001 From: reinelt Date: Mon, 29 Nov 2004 04:42:07 +0000 Subject: [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 --- widget_text.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'widget_text.c') 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 */ -- cgit v1.2.3