Fix x10 video buffer protection

This commit is contained in:
3djc
2020-04-28 11:05:43 +02:00
parent 8b15a28a06
commit a53745d8fd
2 changed files with 6 additions and 4 deletions
+4
View File
@@ -422,7 +422,11 @@ void lcdDrawPoint(coord_t x, coord_t y, LcdFlags att)
{
display_t * p = PIXEL_PTR(x, y);
display_t color = lcdColorTable[COLOR_IDX(att)];
#if defined(PCBX10)
if (p >= displayBuf) { // x10 screen is reversed, so overflow are happening the other way around
#else
if (p < DISPLAY_END) {
#endif
*p = color;
}
}