Fixed lcd_getstringsize() for prop fonts. Now also counts the blank columns

after each character.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1834 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Markus Braun 2002-08-21 06:22:02 +00:00
parent 8167837970
commit bcbb8046f8

View file

@ -794,7 +794,7 @@ int lcd_getstringsize(unsigned char *str, unsigned int font, int *w, int *h)
ch -= ASCII_MIN;
byte = char_dw_8x8_prop[ch][8];
width += byte>>4;
width += (byte>>4) + 1;
if((byte & 0x0f) > height)
height = byte & 0x0f;