summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--firmware/drivers/lcd.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/firmware/drivers/lcd.c b/firmware/drivers/lcd.c
index 4d805b2506..1984f66617 100644
--- a/firmware/drivers/lcd.c
+++ b/firmware/drivers/lcd.c
@@ -1284,10 +1284,14 @@ void lcd_puts_scroll(int x, int y, unsigned char* string )
1284 s->textlen = strlen(string); 1284 s->textlen = strlen(string);
1285 1285
1286 1286
1287#if defined(LCD_PROPFONTS) || defined(LOADABLE_FONTS) 1287#if defined(LCD_PROPFONTS)
1288 s->space += 2; 1288 s->space += 2;
1289 lcd_getstringsize(string,0,&w,&h); 1289 lcd_getstringsize(string,0,&w,&h);
1290 if ( w > LCD_WIDTH - xmargin ) { 1290 if ( w > LCD_WIDTH - xmargin ) {
1291#elif defined(LOADABLE_FONTS)
1292 s->space += 2;
1293 lcd_getstringsize(string,_font,&w,&h);
1294 if ( w > LCD_WIDTH - xmargin ) {
1291#else 1295#else
1292 if ( s->textlen > s->space ) { 1296 if ( s->textlen > s->space ) {
1293#endif 1297#endif