Rockbox.org home
release
dev builds
extras
themes manual
wiki
device status forums
mailing lists
IRC bugs
patches
dev guide



Rockbox mail archive

Subject: Re: linus: apps/gui gwps-common.c,1.1,1.2

Re: linus: apps/gui gwps-common.c,1.1,1.2

From: Dave Wiard <lists_at_wiard.net>
Date: 2005-11-18

Linus,

You're my hero! :) One customization down... Only one more. Animated
battery during charging.

Dave

cvs@labb.contactor.se wrote:
> Update of /cvsroot/rockbox/apps/gui
> In directory labb:/tmp/cvs-serv17349
>
> Modified Files:
> gwps-common.c
> Log Message:
> Removed the percent symbol from the volume and battery WPS tags
>
> Index: gwps-common.c
> ===================================================================
> RCS file: /cvsroot/rockbox/apps/gui/gwps-common.c,v
> retrieving revision 1.1
> retrieving revision 1.2
> diff -u -d -r1.1 -r1.2
> --- gwps-common.c 17 Nov 2005 20:20:01 -0000 1.1
> +++ gwps-common.c 17 Nov 2005 23:27:42 -0000 1.2
> @@ -344,7 +344,7 @@
>
> case 'v': /* volume */
> *flags |= WPS_REFRESH_DYNAMIC;
> - snprintf(buf, buf_size, "%d%%", global_settings.volume);
> + snprintf(buf, buf_size, "%d", global_settings.volume);
> *intval = global_settings.volume / 10 + 1;
> return buf;
>
> @@ -403,7 +403,7 @@
> int l = battery_level();
> if (l > -1)
> {
> - snprintf(buf, buf_size, "%d%%", l);
> + snprintf(buf, buf_size, "%d", l);
> *intval = l / 20 + 1;
> }
> else
>
> _______________________________________________
> rockbox-cvs mailing list
> rockbox-cvs@cool.haxx.se
> http://cool.haxx.se/cgi-bin/mailman/listinfo/rockbox-cvs
Received on Fri Nov 18 00:33:31 2005


Page was last modified "Jan 10 2012" The Rockbox Crew
aaa