[all] A few fixes with DBLSIZE font. We should now use png instead of xbm files. Better supported by Qt!

This commit is contained in:
bsongis@gmail.com
2013-06-11 09:24:51 +00:00
parent 5701c029db
commit ab37f82825
5 changed files with 10 additions and 121 deletions
+7 -5
View File
@@ -110,20 +110,22 @@ void lcd_putcAtt(xcoord_t x, uint8_t y, const unsigned char c, LcdFlags flags)
// c has to be remapped. All non existing chars mapped to 0 (space)
unsigned char c_remapped;
if( c>='0' && c <='9')
if (c>='0' && c<='9')
c_remapped = c - '0' + 1;
else if( c>='A' && c <='Z')
else if (c>='A' && c<='Z')
c_remapped = c - 'A' + 11;
else if( c>='a' && c <='z')
else if (c>='a' && c<='z')
c_remapped = c - 'a' + 37;
else if( c==':')
else if (c==':')
c_remapped = 63;
else if (c=='-')
c_remapped = 64;
else
c_remapped = 0;
/* each letter consists of ten top bytes followed by
* by ten bottom bytes (20 bytes per * char) */
q = &font_10x14[c_remapped * 20];
q = &font_10x14[((uint16_t)c_remapped)*20];
for (int8_t i=11; i>=0; i--) {
if (flags & CONDENSED && i<=1) break;
uint8_t b1=0, b2=0;