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:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user