mirror of
https://github.com/esphome/esphome.git
synced 2026-05-12 18:52:55 +08:00
[online_image] Clear LVGL dsc when image size changes. (#15360)
This commit is contained in:
committed by
Jesse Hills
parent
9bd936112d
commit
9036c29c8a
@@ -247,6 +247,9 @@ void RuntimeImage::release_buffer_() {
|
||||
this->height_ = 0;
|
||||
this->buffer_width_ = 0;
|
||||
this->buffer_height_ = 0;
|
||||
#ifdef USE_LVGL
|
||||
memset(&this->dsc_, 0, sizeof(this->dsc_));
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user