Skip to content

Commit

Permalink
DSi-based themes: Fix incorrect icons & bubble text rapidly changing (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
mentusfentus authored Jun 5, 2024
1 parent 1814a52 commit ccab1ab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions romsel_dsimenutheme/arm9/source/fileBrowse.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3487,7 +3487,7 @@ std::string browseForFile(const std::vector<std::string_view> extensionList) {
swiWaitForVBlank();

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

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

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

if (prevPos != CURPOS) {
// Load icons
Expand Down

0 comments on commit ccab1ab

Please sign in to comment.