mirror of
https://github.com/opentx/opentx.git
synced 2025-07-21 07:15:12 +03:00
Bold font creation modified to skip some collumns
This commit is contained in:
parent
a14ba678b4
commit
a2e9c6cdca
1 changed files with 15 additions and 1 deletions
|
@ -265,10 +265,19 @@ void lcd_putcAtt(xcoord_t x, uint8_t y, const unsigned char c, LcdFlags flags)
|
||||||
|
|
||||||
uint8_t ym8 = (y & 0x07);
|
uint8_t ym8 = (y & 0x07);
|
||||||
#if defined(BOLD_FONT)
|
#if defined(BOLD_FONT)
|
||||||
|
#if !defined(CPUM64)
|
||||||
|
uint8_t skipcol = 7;
|
||||||
|
if ( c >= 'A') skipcol = 4;
|
||||||
|
if ( c == 'T') skipcol = 5;
|
||||||
|
#endif
|
||||||
uint8_t bb = 0;
|
uint8_t bb = 0;
|
||||||
if (inv) bb = 0xff;
|
if (inv) bb = 0xff;
|
||||||
#endif
|
#endif
|
||||||
|
#if !defined(CPUM64)
|
||||||
|
for (int8_t i=0; i<=7; i++) {
|
||||||
|
#else
|
||||||
for (int8_t i=0; i<=6; i++) {
|
for (int8_t i=0; i<=6; i++) {
|
||||||
|
#endif
|
||||||
uint8_t b = 0;
|
uint8_t b = 0;
|
||||||
if ( !i ) {
|
if ( !i ) {
|
||||||
if ( !x || !inv || (flags & BOLD)) {
|
if ( !x || !inv || (flags & BOLD)) {
|
||||||
|
@ -280,7 +289,9 @@ void lcd_putcAtt(xcoord_t x, uint8_t y, const unsigned char c, LcdFlags flags)
|
||||||
else if (i <= 5) b = pgm_read_byte(q++);
|
else if (i <= 5) b = pgm_read_byte(q++);
|
||||||
if (b == 0xff) continue;
|
if (b == 0xff) continue;
|
||||||
if (inv) b = ~b;
|
if (inv) b = ~b;
|
||||||
|
#if !defined(CPUM64)
|
||||||
|
if (!(flags & BOLD) && (i == 7)) continue;
|
||||||
|
#endif
|
||||||
if ((flags & CONDENSED) && i==2) {
|
if ((flags & CONDENSED) && i==2) {
|
||||||
/*condense the letter by skipping column 3 */
|
/*condense the letter by skipping column 3 */
|
||||||
continue;
|
continue;
|
||||||
|
@ -295,6 +306,9 @@ void lcd_putcAtt(xcoord_t x, uint8_t y, const unsigned char c, LcdFlags flags)
|
||||||
a = b | bb;
|
a = b | bb;
|
||||||
bb = b;
|
bb = b;
|
||||||
b = a;
|
b = a;
|
||||||
|
#if !defined(CPUM64)
|
||||||
|
if (i == skipcol) continue;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue