mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-26 19:58:36 +01:00
UI: Align screenshot preview in savestate manager.
This commit is contained in:
1 parent
571b2c6b7a
commit
a518ad783d
3 files changed
+6
-2
No files matched your search
@@ -87,7 +87,7 @@ public:
|
||||
std::string image_path = ReplaceAll(savePath_, ".ppst", ".jpg");
|
||||
if (File::Exists(image_path)) {
|
||||
PrioritizedWorkQueue *wq = g_gameInfoCache->WorkQueue();
|
||||
toprow->Add(new AsyncImageFileView(image_path, IS_DEFAULT, wq, new UI::LayoutParams(500, 500/16*9)));
|
||||
toprow->Add(new AsyncImageFileView(image_path, IS_DEFAULT, wq, new LinearLayoutParams(480, 272, Margins(10, 0))));
|
||||
} else {
|
||||
toprow->Add(new TextView(sa->T("No screenshot"), new LinearLayoutParams(Margins(10, 5))));
|
||||
}
|
||||
@@ -101,6 +101,9 @@ public:
|
||||
root->Add(buttons);
|
||||
}
|
||||
|
||||
protected:
|
||||
virtual UI::Size PopupWidth() const { return 500; }
|
||||
|
||||
private:
|
||||
UI::EventReturn OnDeleteButtonClick(UI::EventParams &e);
|
||||
std::string savePath_;
|
||||
|
||||
Reference in new issue
Block a user