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:
parent
8167837970
commit
bcbb8046f8
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue