Skip to content

Commit ccab1ab

Browse files
authored
DSi-based themes: Fix incorrect icons & bubble text rapidly changing (#2426)
1 parent 1814a52 commit ccab1ab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

romsel_dsimenutheme/arm9/source/fileBrowse.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3487,7 +3487,7 @@ std::string browseForFile(const std::vector<std::string_view> extensionList) {
34873487
swiWaitForVBlank();
34883488

34893489
prevPos = CURPOS;
3490-
CURPOS = std::clamp(titleboxXpos[ms().secondaryDevice] / titleboxXspacing, 0, last_used_box);
3490+
CURPOS = std::clamp((titleboxXpos[ms().secondaryDevice] + 28) / titleboxXspacing, 0, last_used_box);
34913491

34923492
if (CURPOS != prevPos) {
34933493
// Load icons
@@ -3539,7 +3539,7 @@ std::string browseForFile(const std::vector<std::string_view> extensionList) {
35393539

35403540
titleboxXdest[ms().secondaryDevice] = titleboxXdest[ms().secondaryDevice] - (touch.px - prevTouch1.px);
35413541
titlewindowXdest[ms().secondaryDevice] = std::clamp(titleboxXdest[ms().secondaryDevice] * 5 / titleboxXspacing, 0, 192);
3542-
CURPOS = std::clamp((titleboxXdest[ms().secondaryDevice] + 32) / titleboxXspacing, 0, last_used_box);
3542+
CURPOS = std::clamp((titleboxXpos[ms().secondaryDevice] + 28) / titleboxXspacing, 0, last_used_box);
35433543

35443544
if (prevPos != CURPOS) {
35453545
// Load icons

0 commit comments

Comments
 (0)