Fix issue #295
This commit is contained in:
parent
11ef56d48c
commit
e8a0024054
16
TFT_eSPI.cpp
16
TFT_eSPI.cpp
|
|
@ -2927,10 +2927,10 @@ void TFT_eSPI::readAddrWindow(int32_t xs, int32_t ys, int32_t w, int32_t h)
|
||||||
addr_row = 0xFFFF;
|
addr_row = 0xFFFF;
|
||||||
|
|
||||||
#ifdef CGRAM_OFFSET
|
#ifdef CGRAM_OFFSET
|
||||||
xs+=colstart;
|
xs += colstart;
|
||||||
xe+=colstart;
|
xe += colstart;
|
||||||
ys+=rowstart;
|
ys += rowstart;
|
||||||
ye+=rowstart;
|
ye += rowstart;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Column addr set
|
// Column addr set
|
||||||
|
|
@ -2996,10 +2996,10 @@ void TFT_eSPI::readAddrWindow(int32_t xs, int32_t ys, int32_t w, int32_t h)
|
||||||
addr_row = 0xFFFF;
|
addr_row = 0xFFFF;
|
||||||
|
|
||||||
#ifdef CGRAM_OFFSET
|
#ifdef CGRAM_OFFSET
|
||||||
x0+=colstart;
|
xs += colstart;
|
||||||
x1+=colstart;
|
xe += colstart;
|
||||||
y0+=rowstart;
|
ys += rowstart;
|
||||||
y1+=rowstart;
|
ye += rowstart;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Column addr set
|
// Column addr set
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue