Fix #1776
This commit is contained in:
parent
f790c86818
commit
d0494af057
|
|
@ -335,6 +335,18 @@ int8_t TFT_eSprite::getColorDepth(void)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/***************************************************************************************
|
||||||
|
** Function name: setBitmapColor
|
||||||
|
** Description: Set the 1bpp foreground foreground and background colour
|
||||||
|
***************************************************************************************/
|
||||||
|
void TFT_eSprite::setBitmapColor(uint16_t c, uint16_t b)
|
||||||
|
{
|
||||||
|
if (c == b) b = ~c;
|
||||||
|
_tft->bitmap_fg = c;
|
||||||
|
_tft->bitmap_bg = b;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/***************************************************************************************
|
/***************************************************************************************
|
||||||
** Function name: setPaletteColor
|
** Function name: setPaletteColor
|
||||||
** Description: Set the 4bpp palette color at the given index
|
** Description: Set the 4bpp palette color at the given index
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue