graphical_display_menu requires a Display, not DisplayBuffer (#6614)

This commit is contained in:
Clyde Stubbs
2024-04-24 05:55:27 +10:00
committed by GitHub
parent 06829b53fe
commit 8027921ba3
3 changed files with 4 additions and 2 deletions
+1
View File
@@ -62,6 +62,7 @@ struct Color {
return Color(esp_scale8(this->red, scale), esp_scale8(this->green, scale), esp_scale8(this->blue, scale),
esp_scale8(this->white, scale));
}
inline Color operator~() const ALWAYS_INLINE { return Color(255 - this->red, 255 - this->green, 255 - this->blue); }
inline Color &operator*=(uint8_t scale) ALWAYS_INLINE {
this->red = esp_scale8(this->red, scale);
this->green = esp_scale8(this->green, scale);