Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/OLEDDisplayUi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -396,13 +396,13 @@ void OLEDDisplayUi::drawFrame(){

// Probe each frameFunction for the indicator drawn state
this->enableIndicator();
this->state.transitionFrameRelationship = OUTGOING;
this->state.transitionFrameRelationship = TransitionRelationship_OUTGOING;
//Since we're IN_TRANSITION, draw the old frame in a sliding-out position
(this->frameFunctions[this->state.currentFrame])(this->display, &this->state, x, y);
drawnCurrentFrame = this->state.isIndicatorDrawn;

this->enableIndicator();
this->state.transitionFrameRelationship = INCOMING;
this->state.transitionFrameRelationship = TransitionRelationship_INCOMING;
//Since we're IN_TRANSITION, draw the mew frame in a sliding-in position
(this->frameFunctions[this->getNextFrameNumber()])(this->display, &this->state, x1, y1);
// tell the consumer of this API that the frame that's coming into focus
Expand Down Expand Up @@ -433,7 +433,7 @@ void OLEDDisplayUi::drawFrame(){
// And set indicatorDrawState to "not known yet"
this->indicatorDrawState = 0;
this->enableIndicator();
this->state.transitionFrameRelationship = NONE;
this->state.transitionFrameRelationship = TransitionRelationship_NONE;
//Since we're not transitioning, just draw the current frame at the origin
(this->frameFunctions[this->state.currentFrame])(this->display, &this->state, 0, 0);
// tell the consumer of this API that the frame that's coming into focus
Expand Down
6 changes: 3 additions & 3 deletions src/OLEDDisplayUi.h
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,9 @@ enum FrameState {
};

enum TransitionRelationship {
NONE,
INCOMING,
OUTGOING,
TransitionRelationship_NONE,
TransitionRelationship_INCOMING,
TransitionRelationship_OUTGOING,
};

const uint8_t ANIMATION_activeSymbol[] PROGMEM = {
Expand Down