1
0
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:
Ian Foster 2025-02-21 14:13:35 -08:00
parent f846b31573
commit 406467cc82

View File

@ -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();
}
}