mirror of
https://github.com/esphome/esphome.git
synced 2025-11-16 14:55:50 +00:00
[image][online_image][animation] Fix transparency in RGB565 (#7631)
This commit is contained in:
@@ -62,7 +62,7 @@ void Animation::set_frame(int frame) {
|
||||
}
|
||||
|
||||
void Animation::update_data_start_() {
|
||||
const uint32_t image_size = image_type_to_width_stride(this->width_, this->type_) * this->height_;
|
||||
const uint32_t image_size = this->get_width_stride() * this->height_;
|
||||
this->data_start_ = this->animation_data_start_ + image_size * this->current_frame_;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user