From f12e194cb2fe8008d2ea9733277459d176fec26a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Mon, 18 Jul 2022 11:03:02 +0200 Subject: [PATCH] Main screen: Display .ppdmp filenames on buttons in grid mode Makes it a bit easier to pick them out and doesn't make them look quite as broken. --- UI/MainScreen.cpp | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/UI/MainScreen.cpp b/UI/MainScreen.cpp index 8b5fbb08f4..900fd17ad2 100644 --- a/UI/MainScreen.cpp +++ b/UI/MainScreen.cpp @@ -322,7 +322,17 @@ void GameButton::Draw(UIContext &dc) { dc.Draw()->Flush(); dc.RebindTexture(); dc.SetFontStyle(dc.theme->uiFont); - if (!gridStyle_) { + if (gridStyle_ && ginfo->fileType == IdentifiedFileType::PPSSPP_GE_DUMP) { + // Super simple drawing for ge dumps. + dc.PushScissor(bounds_); + const std::string currentTitle = ginfo->GetTitle(); + dc.SetFontScale(0.6f, 0.6f); + dc.DrawText(title_.c_str(), bounds_.x + 4.0f, bounds_.centerY(), style.fgColor, ALIGN_VCENTER | ALIGN_LEFT); + dc.SetFontScale(1.0f, 1.0f); + title_ = currentTitle; + dc.Draw()->Flush(); + dc.PopScissor(); + } else if (!gridStyle_) { float tw, th; dc.Draw()->Flush(); dc.PushScissor(bounds_);