1
0
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:
Clyde Stubbs
2024-10-25 09:05:25 +11:00
committed by GitHub
parent 09f9d91577
commit 33fdbbe30c
15 changed files with 101 additions and 291 deletions

View File

@@ -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_;
}