mirror of
https://github.com/esphome/esphome.git
synced 2025-03-13 22:28:14 +00:00
resize buffer corectly
This commit is contained in:
parent
f846b31573
commit
406467cc82
@ -74,7 +74,7 @@ size_t OnlineImage::resize_(int width_in, int height_in, int frames) {
|
||||
if (this->is_auto_resize_()) {
|
||||
width = width_in;
|
||||
height = height_in;
|
||||
if (this->width_ != width && this->height_ != height) {
|
||||
if (this->width_ != width || this->height_ != height || this->animation_frame_count_ != frames) {
|
||||
this->release();
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user