Skip to content

Commit

Permalink
Fix layout issue on savedata screen
Browse files Browse the repository at this point in the history
Fixes #20030
  • Loading branch information
hrydgard committed Feb 25, 2025
1 parent e8df6d4 commit ee90971
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions UI/GameInfoCache.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -677,8 +677,6 @@ class GameInfoWorkItem : public Task {
Path screenshotPath = gamePath_.WithReplacedExtension(".ppst", ".jpg");
if (ReadLocalFileToString(screenshotPath, &info_->icon.data, &info_->lock)) {
info_->icon.dataLoaded = true;
} else {
ERROR_LOG(Log::G3D, "Error loading screenshot data: '%s'", screenshotPath.c_str());
}
}
break;
Expand Down
2 changes: 1 addition & 1 deletion UI/SavedataScreen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -632,7 +632,7 @@ void SavedataScreen::CreateSavestateTab(UI::ViewGroup *savestate) {
using namespace UI;
Path savestate_dir = GetSysDirectory(DIRECTORY_SAVESTATE);

ChoiceStrip *sortStrip = new ChoiceStrip(ORIENT_HORIZONTAL);
ChoiceStrip *sortStrip = new ChoiceStrip(ORIENT_HORIZONTAL, new LinearLayoutParams(0.0f, UI::Gravity::G_CENTER));
sortStrip->AddChoice(sa->T("Filename"));
sortStrip->AddChoice(sa->T("Size"));
sortStrip->AddChoice(sa->T("Date"));
Expand Down

0 comments on commit ee90971

Please sign in to comment.