Skip to content

Commit

Permalink
fix bug in splash screen
Browse files Browse the repository at this point in the history
  • Loading branch information
fhoedemakers committed May 21, 2024
1 parent 1548e43 commit 1cb8694
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,16 @@

Copy smsPlus64.z64 to your Nintendo 64 flash card. Create a folder named `smsPlus64` in the root of your flashcard's SD card and copy your .sms or .gg ROMs there.

## v0.5

### Features

- none

### Fixes

- Fix bug in splash screen

## v0.4

### Features
Expand Down
4 changes: 3 additions & 1 deletion menu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,7 @@ void showSplashScreen()
putText(SCREEN_COLS / 2 - strlen(s) / 2, 26, s, CLIGHTBLUE, bgcolor);
int startFrame = -1;
putText(SCREEN_COLS - strlen(SWVERSION) - 1, SCREEN_ROWS - 2, SWVERSION, fgcolor, bgcolor);
bool first = true;
while (true)
{
auto frameCount = DrawScreen(-1);
Expand All @@ -259,8 +260,9 @@ void showSplashScreen()
{
break;
}
if ((frameCount % 30) == 0)
if (first || (frameCount % 30) == 0)
{
first = false;
for (auto i = 0; i < SCREEN_COLS; i++)
{
auto col = getrandomcolor();
Expand Down

0 comments on commit 1cb8694

Please sign in to comment.