Font improvements: Fix bug that caused some fonts to be rendered garbled on custom...
commit72d8688c5a6b759bd41f29e7b31c4b57a77c2f85
authornls <nls@a1c6a512-1295-4272-9138-f99709370657>
Sun, 13 Dec 2009 11:07:40 +0000 (13 11:07 +0000)
committernls <nls@a1c6a512-1295-4272-9138-f99709370657>
Sun, 13 Dec 2009 11:07:40 +0000 (13 11:07 +0000)
tree9085ed0f8193d5fd514b6c46d7834341cba37cbf
parentcd3e550d1ca94bf0bcce3757ab0bd5179c05db0c
Font improvements: Fix bug that caused some fonts to be rendered garbled on custom builds with MAX_FONT_SIZE > 64k (closes FS#10844). Simplify version check. Use void pointer and explicit casting for the offsets to make it clearer that they may be of different sizes, add a comment too. Use uint16_t in stead of short in some places for consistency. Replace magic number with meaningful define.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23969 a1c6a512-1295-4272-9138-f99709370657
firmware/export/font.h
firmware/font.c