1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-29 22:24:26 +00:00

Compatibility with clang-tidy v14 (#2272)

This commit is contained in:
Oxan van Leeuwen
2021-09-13 09:35:55 +02:00
committed by GitHub
parent f31e0532c4
commit 0cd24c629a
12 changed files with 41 additions and 45 deletions

View File

@@ -514,9 +514,7 @@ Color Animation::get_grayscale_pixel(int x, int y) const {
return Color(gray | gray << 8 | gray << 16 | gray << 24);
}
Animation::Animation(const uint8_t *data_start, int width, int height, uint32_t animation_frame_count, ImageType type)
: Image(data_start, width, height, type), animation_frame_count_(animation_frame_count) {
current_frame_ = 0;
}
: Image(data_start, width, height, type), current_frame_(0), animation_frame_count_(animation_frame_count) {}
int Animation::get_animation_frame_count() const { return this->animation_frame_count_; }
int Animation::get_current_frame() const { return this->current_frame_; }
void Animation::next_frame() {