summaryrefslogtreecommitdiff
path: root/firmware/export/font.h
diff options
context:
space:
mode:
authorFred Bauer <fred.w.bauer@gmail.com>2011-10-17 13:17:04 +0000
committerFred Bauer <fred.w.bauer@gmail.com>2011-10-17 13:17:04 +0000
commit8c9017211e466cde0dc729c1814d813192ffd570 (patch)
tree567d7332df052e0e5fbef9f4550ff7b44ca3db74 /firmware/export/font.h
parentafc42ff7935274b9cee2980635e69985ddaa844b (diff)
Faster cached font loading. FS#12333
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30769 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export/font.h')
-rw-r--r--firmware/export/font.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/firmware/export/font.h b/firmware/export/font.h
index 36c6e0a291..02476c17ff 100644
--- a/firmware/export/font.h
+++ b/firmware/export/font.h
@@ -100,6 +100,8 @@ struct font {
/* file, buffer and cache management */
int fd; /* fd for the font file. >= 0 if cached */
+ int fd_width; /* fd for the font file. >= 0 if cached */
+ int fd_offset; /* fd for the font file. >= 0 if cached */
unsigned char *buffer_start; /* buffer to store the font in */
unsigned char *buffer_position; /* position in the buffer */
unsigned char *buffer_end; /* end of the buffer */