mirror of
https://github.com/Bodmer/TFT_eSPI.git
synced 2025-08-07 06:34:44 +02:00
Fix issue #295
This commit is contained in:
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
|
||||||
|
Reference in New Issue
Block a user