mirror of
https://github.com/esphome/esphome.git
synced 2024-11-28 12:46:22 +01:00
Replace deprecated COLOR_BLACK constant (#2487)
This commit is contained in:
parent
ea56a39e11
commit
039fbc677d
@ -142,7 +142,7 @@ void ILI9341Display::fill(Color color) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void ILI9341Display::fill_internal_(Color color) {
|
void ILI9341Display::fill_internal_(Color color) {
|
||||||
if (color.raw_32 == COLOR_BLACK.raw_32) {
|
if (color.raw_32 == Color::BLACK.raw_32) {
|
||||||
memset(transfer_buffer_, 0, sizeof(transfer_buffer_));
|
memset(transfer_buffer_, 0, sizeof(transfer_buffer_));
|
||||||
} else {
|
} else {
|
||||||
uint8_t *dst = transfer_buffer_;
|
uint8_t *dst = transfer_buffer_;
|
||||||
|
Loading…
Reference in New Issue
Block a user