1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-25 17:25:13 +03:00

PWFONT defined in Makefile for STD option

INVERTED string has black borders from all sides
This commit is contained in:
mhotar 2013-12-19 20:26:56 +01:00
parent c38f7f9941
commit d840c8acd4
332 changed files with 23 additions and 84 deletions

View file

@ -300,6 +300,9 @@ void lcd_putcAtt(xcoord_t x, uint8_t y, const unsigned char c, LcdFlags flags)
LCD_BYTE_FILTER(r, 0xff, b >> (8-ym8));
}
}
#endif
#if !defined(CPUM64)
if (y && inv) *p |= BITMASK((y-1)%8);
#endif
if (i == 6) {
lcdLastFW++;
@ -310,6 +313,9 @@ void lcd_putcAtt(xcoord_t x, uint8_t y, const unsigned char c, LcdFlags flags)
#endif
if (p<DISPLAY_END) {
#if !defined(CPUM64)
if (y && inv) *p |= BITMASK((y-1)%8);
#endif
LCD_BYTE_FILTER(p, ~(0xff << ym8), b << ym8);
if (ym8) {
uint8_t *r = p + LCD_W;
@ -342,6 +348,7 @@ void lcd_putsnAtt(xcoord_t x, uint8_t y, const pm_char * s, uint8_t len, LcdFlag
{
while(len!=0) {
unsigned char c;
bool setx = false;
switch (mode & (BSS+ZCHAR)) {
case BSS:
c = *s;
@ -353,14 +360,18 @@ void lcd_putsnAtt(xcoord_t x, uint8_t y, const pm_char * s, uint8_t len, LcdFlag
c = pgm_read_byte(s);
break;
}
if (!c || x>LCD_W-6) break;
if (c >= 0x20) {
lcd_putcAtt(x, y, c, mode);
x += lcdLastFW;
}
else if (setx) {
x = c;
setx = false;
}
else if (c == 0x1F) {
x++;
x |= 0x0F;
setx = true;
}
else {
x += (c*FW/2);