added prev_frame for animation (#3427)
This commit is contained in:
1 parent
7cba0c6fb0
commit
69118120d9
2 files changed
+7
No files matched your search
@@ -584,6 +584,12 @@ void Animation::next_frame() {
|
||||
this->current_frame_ = 0;
|
||||
}
|
||||
}
|
||||
void Animation::prev_frame() {
|
||||
this->current_frame_--;
|
||||
if (this->current_frame_ < 0) {
|
||||
this->current_frame_ = this->animation_frame_count_ - 1;
|
||||
}
|
||||
}
|
||||
|
||||
DisplayPage::DisplayPage(display_writer_t writer) : writer_(std::move(writer)) {}
|
||||
void DisplayPage::show() { this->parent_->show_page(this); }
|
||||
|
||||
Reference in new issue
Block a user