From 8928d7aaf87181a28b72ef988930745a54218be8 Mon Sep 17 00:00:00 2001 From: lovyan03 <42724151+lovyan03@users.noreply.github.com> Date: Tue, 30 Apr 2019 10:46:23 +0900 Subject: [PATCH] Fix: Sprite bug. --- src/utility/Sprite.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utility/Sprite.cpp b/src/utility/Sprite.cpp index a352ef3..821d046 100644 --- a/src/utility/Sprite.cpp +++ b/src/utility/Sprite.cpp @@ -1179,7 +1179,7 @@ uint8_t TFT_eSprite::getRotation(void) { *************************************************************************************x*/ void TFT_eSprite::drawPixel(int32_t x, int32_t y, uint32_t color) { // Range checking - if ((x < 0) || (y < 0) ||(x >= _width) || (y >= _height) || !_created) { + if ((x < 0) || (y < 0) ||(x >= width()) || (y >= height()) || !_created) { return; } if (_bpp == 16) {