From 18174446bc827069f9e97194f58cc58f2f5e5fa3 Mon Sep 17 00:00:00 2001 From: bsongis Date: Wed, 28 Nov 2012 22:46:46 +0000 Subject: [PATCH] [X9D] Midsize font: lower case chars are narrowed --- src/lcd.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/lcd.cpp b/src/lcd.cpp index 328d4ed9f..a2c35d459 100644 --- a/src/lcd.cpp +++ b/src/lcd.cpp @@ -236,7 +236,14 @@ void lcd_putsnAtt(xcoord_t x, uint8_t y, const pm_char * s, uint8_t len, LcdFlag } if (!c || x>DISPLAY_W-6) break; if (c >= 0x20) { - lcd_putcAtt(x,y,c,mode); +#if defined(PCBX9D) + if ((mode & MIDSIZE) && ((c>='a'&&c<='z')||(c>='0'&&c<='9'))) { + lcd_putcAtt(x, y, c, mode); + x-=1; + } + else +#endif + lcd_putcAtt(x, y, c, mode); x += FW; if (mode&DBLSIZE) x += FW-1; else if (mode&MIDSIZE) x += FW-3;