[qspi_amoled] Fix clear/fill with rotation (#6960)

This commit is contained in:
Manuel Kasper 2024-06-22 17:10:22 +02:00 committed by GitHub
parent 18690d51f5
commit 1e05bcaa61
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -65,13 +65,10 @@ class QspiAmoLed : public display::DisplayBuffer,
void set_reset_pin(GPIOPin *reset_pin) { this->reset_pin_ = reset_pin; } void set_reset_pin(GPIOPin *reset_pin) { this->reset_pin_ = reset_pin; }
void set_enable_pin(GPIOPin *enable_pin) { this->enable_pin_ = enable_pin; } void set_enable_pin(GPIOPin *enable_pin) { this->enable_pin_ = enable_pin; }
void set_width(uint16_t width) { this->width_ = width; }
void set_dimensions(uint16_t width, uint16_t height) { void set_dimensions(uint16_t width, uint16_t height) {
this->width_ = width; this->width_ = width;
this->height_ = height; this->height_ = height;
} }
int get_width() override { return this->width_; }
int get_height() override { return this->height_; }
void set_invert_colors(bool invert_colors) { void set_invert_colors(bool invert_colors) {
this->invert_colors_ = invert_colors; this->invert_colors_ = invert_colors;
this->reset_params_(); this->reset_params_();