.pio/libdeps/m5stack-core2/M5Core2/src/utility/Sprite.cpp
void TFT_eSprite::pushSprite(int32_t x, int32_t y)
{
  if (!_created) return;

  if (_bpp == 16)
  {
    bool oldSwapBytes = _tft->getSwapBytes();
    _tft->setSwapBytes(false);
    _tft->pushImage(x, y, _iwidth, _iheight, _img );
    _tft->setSwapBytes(oldSwapBytes);
  }

  else _tft->pushImage(x, y, _dwidth, _dheight, _img8, (bool)(_bpp == 8));
}
/***************************************************************************************
** Function name:           pushSprite
** Description:             Push the sprite to the TFT at x, y
*************************************************************************************x*/
Function name:           pushSprite
Description:             Push the sprite to the TFT at x, y
x
Function name : pushSprite Description : Push the sprite to the TFT at x y x
void TFT_eSprite::pushSprite(int32_t x, int32_t y)
{
  if (!_created) return;
  if (_bpp == 16)
  {
    bool oldSwapBytes = _tft->getSwapBytes();
    _tft->setSwapBytes(false);
    _tft->pushImage(x, y, _iwidth, _iheight, _img );
    _tft->setSwapBytes(oldSwapBytes);
  }
  else _tft->pushImage(x, y, _dwidth, _dheight, _img8, (bool)(_bpp == 8));
}
void TFT_eSprite :: pushSprite ( int32_t x , int32_t y ) { if ( ! _created ) return ; if ( _bpp == 16 ) { bool oldSwapBytes = _tft -> getSwapBytes ( ) ; _tft -> setSwapBytes ( false ) ; _tft -> pushImage ( x , y , _iwidth , _iheight , _img ) ; _tft -> setSwapBytes ( oldSwapBytes ) ; } else _tft -> pushImage ( x , y , _dwidth , _dheight , _img8 , ( bool ) ( _bpp == 8 ) ) ; }
Function name:           pushSprite
Description:             Push the sprite to the TFT at x, y
x
Function name : pushSprite Description : Push the sprite to the TFT at x y x