summaryrefslogtreecommitdiffstats
path: root/firmware/export/logf.h
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2005-06-01 13:21:20 +0000
committerDaniel Stenberg <daniel@haxx.se>2005-06-01 13:21:20 +0000
commit6ebdbe8df31e4abbc1466f827c9207339522d9f5 (patch)
tree0364fb78c9b18a13467660877cead9b9d69fb0cb /firmware/export/logf.h
parent1c5374fe79bc753672f3862b829c4456212bfb20 (diff)
downloadrockbox-6ebdbe8df31e4abbc1466f827c9207339522d9f5.tar.gz
rockbox-6ebdbe8df31e4abbc1466f827c9207339522d9f5.tar.bz2
rockbox-6ebdbe8df31e4abbc1466f827c9207339522d9f5.zip
Modified logf to use a define for the log width, and changed it to default to
21 as that is what fits in an iriver LCD by default since the font is 6 pixels wide. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6547 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export/logf.h')
-rw-r--r--firmware/export/logf.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/firmware/export/logf.h b/firmware/export/logf.h
index f74f50377e..7e9b27ab0a 100644
--- a/firmware/export/logf.h
+++ b/firmware/export/logf.h
@@ -23,9 +23,10 @@
#ifdef ROCKBOX_HAS_LOGF
#define MAX_LOGF_LINES 1000
-#define MAX_LOGF_DATASIZE (16*MAX_LOGF_LINES)
+#define MAX_LOGF_ENTRY 21 /* 128/6 pixels */
+#define MAX_LOGF_DATASIZE (MAX_LOGF_ENTRY*MAX_LOGF_LINES)
-extern unsigned char logfbuffer[MAX_LOGF_LINES][16];
+extern unsigned char logfbuffer[MAX_LOGF_LINES][MAX_LOGF_ENTRY];
extern int logfindex;
extern bool logfwrap;