.pio/libdeps/m5stack-core2/M5Core2/src/utility/Sprite.cpp
void TFT_eSprite::setRotation(uint8_t rotation)
{
  if (_bpp != 1) return;

  _rotation = rotation;
  if (rotation == 0 && _iwidth > _iheight) swap_coord(_iwidth, _iheight);
  if (rotation == 1 && _iwidth < _iheight) swap_coord(_iwidth, _iheight);
  if (rotation == 2 && _iwidth > _iheight) swap_coord(_iwidth, _iheight);
  if (rotation == 3 && _iwidth < _iheight) swap_coord(_iwidth, _iheight);
}
// Does nothing for 8 and 16 bpp sprites. TODO allow rotation of these sprites
Does nothing for 8 and 16 bpp sprites. TODO allow rotation of these sprites
Does nothing for 8 and 16 bpp sprites . TODO allow rotation of these sprites
void TFT_eSprite::setRotation(uint8_t rotation)
{
  if (_bpp != 1) return;
  _rotation = rotation;
  if (rotation == 0 && _iwidth > _iheight) swap_coord(_iwidth, _iheight);
  if (rotation == 1 && _iwidth < _iheight) swap_coord(_iwidth, _iheight);
  if (rotation == 2 && _iwidth > _iheight) swap_coord(_iwidth, _iheight);
  if (rotation == 3 && _iwidth < _iheight) swap_coord(_iwidth, _iheight);
}
void TFT_eSprite :: setRotation ( uint8_t rotation ) { if ( _bpp != 1 ) return ; _rotation = rotation ; if ( rotation == 0 && _iwidth > _iheight ) swap_coord ( _iwidth , _iheight ) ; if ( rotation == 1 && _iwidth < _iheight ) swap_coord ( _iwidth , _iheight ) ; if ( rotation == 2 && _iwidth > _iheight ) swap_coord ( _iwidth , _iheight ) ; if ( rotation == 3 && _iwidth < _iheight ) swap_coord ( _iwidth , _iheight ) ; }
Does nothing for 8 and 16 bpp sprites.
Does nothing for 8 and 16 bpp sprites .