mirror of
https://github.com/esphome/esphome.git
synced 2025-03-15 07:08:20 +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_()) {
|
if (this->is_auto_resize_()) {
|
||||||
width = width_in;
|
width = width_in;
|
||||||
height = height_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();
|
this->release();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user