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

Possible display overflow

This commit is contained in:
bsongis 2014-06-22 09:00:41 +02:00
parent 5b2530ba79
commit 7467213bad

View file

@ -301,7 +301,7 @@ void lcd_putcAtt(xcoord_t x, uint8_t y, const unsigned char c, LcdFlags flags)
}
#endif
if (p<lineEnd && !BLINKING_CHAR) {
if (p<DISPLAY_END && p<lineEnd && !BLINKING_CHAR) {
ASSERT_IN_DISPLAY(p);
uint8_t mask = ~(0xff << ym8);
LCD_BYTE_FILTER(p, mask, b << ym8);