Font improvements: Fix bug that caused some fonts to be rendered garbled on custom...
commit09e461b93f8119cb41de0cfd42ba7e3cf8b36660
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
parent268b12cf42a1f3969226c84ff0a62db42ae43526
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