Skip to content

Commit

Permalink
Wood theme: Slow down icon zooming animation by a frame
Browse files Browse the repository at this point in the history
  • Loading branch information
RocketRobz committed Jun 12, 2024
1 parent 660f2b9 commit fe9dd36
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions romsel_aktheme/arm9/source/graphics/graphics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ static bool iconScaleEnabled = false;
static int iconScaleWait = 0;
static int iconScale = 0;
static bool iconScaleLarge = true;
static bool iconScaleDelay = false;
static int iconScaleDelay = 0;
static int iconShift = 0;

static u16 formFrameColor = RGB15(23,25,4);
Expand Down Expand Up @@ -297,7 +297,7 @@ void resetIconScale(void) {
iconScaleWait = 0;
iconScale = 0;
iconScaleLarge = true;
iconScaleDelay = false;
iconScaleDelay = 0;
iconShift = 0;
}

Expand Down Expand Up @@ -1623,10 +1623,11 @@ void vBlankHandler()
}
}
}
iconScaleDelay = !iconScaleDelay;
if (iconScaleDelay++ == 2) {
iconScaleDelay = 0;
}
} else if (ms().ak_zoomIcons) {
iconScaleWait++;
if (iconScaleWait == 60) {
if (iconScaleWait++ == 60) {
iconScaleWait = 0;
iconScaleEnabled = true;
}
Expand Down

0 comments on commit fe9dd36

Please sign in to comment.