From 5162af0a0e13e0d4bc0e4c792ed28d38599a1f23 Mon Sep 17 00:00:00 2001 From: Bodmer Date: Wed, 25 Oct 2023 20:38:45 +0100 Subject: [PATCH] Update TFT_eSPI.cpp --- TFT_eSPI.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/TFT_eSPI.cpp b/TFT_eSPI.cpp index 23c0ebd..ae96f6b 100644 --- a/TFT_eSPI.cpp +++ b/TFT_eSPI.cpp @@ -2158,6 +2158,7 @@ void TFT_eSPI::pushMaskedImage(int32_t x, int32_t y, int32_t w, int32_t h, uint1 xp += clearCount; clearCount = 0; pushImage(x + xp, y, setCount, 1, iptr + xp); // pushImage handles clipping + if (mptr >= eptr) break; xp += setCount; } } while (setCount || mptr < eptr);