Skip to content

Commit 94b0438

Browse files
committed
Fix #2387
1 parent c8d59c6 commit 94b0438

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

romsel_dsimenutheme/arm9/source/fileBrowse.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -605,17 +605,17 @@ void updateBoxArt(void) {
605605
showSTARTborder = true;
606606
if (ms().theme == TWLSettings::EThemeHBL || ms().macroMode || !ms().showBoxArt || boxArtLoaded) return;
607607

608+
if (ms().theme == TWLSettings::ETheme3DS && rocketVideo_playVideo) {
609+
rocketVideo_playVideo = false;
610+
while (dmaBusy(1)) swiDelay(100); // Wait for frame to finish rendering
611+
}
612+
clearBoxArt(); // and clear top screen cubes for 3DS theme
613+
608614
if (isDirectory[CURPOS]) {
609-
clearBoxArt(); // Clear box art, if it's a directory
610615
if (ms().theme == TWLSettings::ETheme3DS && !rocketVideo_playVideo) {
611616
rocketVideo_playVideo = true;
612617
}
613618
} else {
614-
if (ms().theme == TWLSettings::ETheme3DS && rocketVideo_playVideo) {
615-
while (dmaBusy(1)); // Wait for frame to finish rendering
616-
rocketVideo_playVideo = false; // Clear top screen cubes
617-
}
618-
clearBoxArt();
619619
sprintf(boxArtPath, "%s:/_nds/TWiLightMenu/boxart/%s.png", sys().isRunFromSD() ? "sd" : "fat", boxArtFilename);
620620
if ((bnrRomType[CURPOS] == 0) && (access(boxArtPath, F_OK) != 0)) {
621621
sprintf(boxArtPath, "%s:/_nds/TWiLightMenu/boxart/%s.png", sys().isRunFromSD() ? "sd" : "fat", gameTid[CURPOS]);

0 commit comments

Comments
 (0)