diff options
Diffstat (limited to 'firmware/drivers/lcd.c')
-rw-r--r-- | firmware/drivers/lcd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/drivers/lcd.c b/firmware/drivers/lcd.c index e2e7514021..2062a1dc21 100644 --- a/firmware/drivers/lcd.c +++ b/firmware/drivers/lcd.c | |||
@@ -794,7 +794,7 @@ int lcd_getstringsize(unsigned char *str, unsigned int font, int *w, int *h) | |||
794 | ch -= ASCII_MIN; | 794 | ch -= ASCII_MIN; |
795 | 795 | ||
796 | byte = char_dw_8x8_prop[ch][8]; | 796 | byte = char_dw_8x8_prop[ch][8]; |
797 | width += byte>>4; | 797 | width += (byte>>4) + 1; |
798 | if((byte & 0x0f) > height) | 798 | if((byte & 0x0f) > height) |
799 | height = byte & 0x0f; | 799 | height = byte & 0x0f; |
800 | 800 | ||