From 00ac1296678a0b29f28932af4a4b2e7943c74733 Mon Sep 17 00:00:00 2001 From: Bodmer Date: Tue, 5 May 2020 21:36:05 +0100 Subject: [PATCH] Update Sprite.cpp --- Extensions/Sprite.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Extensions/Sprite.cpp b/Extensions/Sprite.cpp index c606677..f3d7e3e 100644 --- a/Extensions/Sprite.cpp +++ b/Extensions/Sprite.cpp @@ -96,7 +96,7 @@ void* TFT_eSprite::createSprite(int16_t w, int16_t h, uint8_t frames) // This is to make it clear what pointer size is expected to be used // but casting in the user sketch is needed due to the use of void* - if (_(bpp == 1) && (frames > 1) ) + if ( (_bpp == 1) && (frames > 1) ) { w = (w+7) & 0xFFF8; _img8_2 = _img8 + ( (w>>3) * h + 1 );