Replace deprecated COLOR_BLACK constant (#2487)

This commit is contained in:
Dave T 2021-10-11 22:44:05 +01:00 committed by GitHub
parent ea56a39e11
commit 039fbc677d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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_;