Merge pull request #157 from lovyan03/Branch_TFT_eSPI

Fix: Sprite bug.
This commit is contained in:
EeeeBin
2019-04-30 10:03:16 +08:00
committed by GitHub
+1 -1
View File
@@ -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) {