fixed PIXEL_PTR() macro on X10

fixes #5764
This commit is contained in:
Raphael Coeffic
2018-04-22 12:06:20 +02:00
committed by Raphael Coeffic
parent 1f8ebea10c
commit 697403b841
+5 -1
View File
@@ -164,7 +164,11 @@ void putsChnLetter(coord_t x, coord_t y, uint8_t idx, LcdFlags attr);
#define DOTTED 0x55
#define STASHED 0x33
#define PIXEL_PTR(x, y) &displayBuf[(y)*LCD_W + (x)]
#if defined(PCBX10) && !defined(SIMU)
#define PIXEL_PTR(x, y) &displayBuf[(LCD_H*LCD_W-1) - (y)*LCD_W - (x)]
#else
#define PIXEL_PTR(x, y) &displayBuf[(y)*LCD_W + (x)]
#endif
void lcdDrawAlphaPixel(display_t * p, uint8_t opacity, uint16_t color);
void lcdDrawPoint(coord_t x, coord_t y, LcdFlags att=0);