|
amiconn: apps/recorder recording.c,1.69,1.70: msg#00246systems.archos.rockbox.cvs
Update of /cvsroot/rockbox/apps/recorder In directory labb:/tmp/cvs-serv5400/apps/recorder Modified Files: recording.c Log Message: New function for formatting large-range values for output, both printed and voiced. This replaces num2max5(). It is currently used for the total/free space display in the info menu, for the recorded number of bytes (recorders) and the MMC debug info (Ondios). Index: recording.c =================================================================== RCS file: /cvsroot/rockbox/apps/recorder/recording.c,v retrieving revision 1.69 retrieving revision 1.70 diff -u -d -r1.69 -r1.70 --- recording.c 13 Jan 2005 23:40:00 -0000 1.69 +++ recording.c 31 Jan 2005 00:39:20 -0000 1.70 @@ -248,6 +248,13 @@ bool led_state; int led_delay; + const unsigned char *byte_units[] = { + ID2P(LANG_BYTE), + ID2P(LANG_KILOBYTE), + ID2P(LANG_MEGABYTE), + ID2P(LANG_GIGABYTE) + }; + cursor = 0; mpeg_init_recording(); @@ -587,10 +594,13 @@ dhours, dminutes); } else + { + output_dyn_value(buf2, sizeof buf2, + mpeg_num_recorded_bytes(), + byte_units, true); snprintf(buf, 32, "%s %s", - str(LANG_RECORDING_SIZE), - num2max5(mpeg_num_recorded_bytes(), - buf2)); + str(LANG_RECORDING_SIZE), buf2); + } } lcd_puts(0, 1, buf); _______________________________________________ http://cool.haxx.se/mailman/listinfo/rockbox-cvs |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | amiconn: apps misc.c, 1.21, 1.22 misc.h, 1.8, 1.9 debug_menu.c, 1.97, 1.98 main_menu.c, 1.115, 1.116: 00246, cvs |
|---|---|
| Next by Date: | amiconn: apps misc.c,1.22,1.23: 00246, cvs |
| Previous by Thread: | amiconn: apps misc.c, 1.21, 1.22 misc.h, 1.8, 1.9 debug_menu.c, 1.97, 1.98 main_menu.c, 1.115, 1.116i: 00246, cvs |
| Next by Thread: | amiconn: apps misc.c,1.22,1.23: 00246, cvs |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |