Skip to content

Commit 5162af0

Browse files
authored
Update TFT_eSPI.cpp
1 parent e964ccb commit 5162af0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

TFT_eSPI.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2158,6 +2158,7 @@ void TFT_eSPI::pushMaskedImage(int32_t x, int32_t y, int32_t w, int32_t h, uint1
21582158
xp += clearCount;
21592159
clearCount = 0;
21602160
pushImage(x + xp, y, setCount, 1, iptr + xp); // pushImage handles clipping
2161+
if (mptr >= eptr) break;
21612162
xp += setCount;
21622163
}
21632164
} while (setCount || mptr < eptr);

0 commit comments

Comments
 (0)