mirror of
https://github.com/m5stack/M5Stack.git
synced 2026-05-20 10:06:46 -07:00
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user