From f13d339ed3d465f9f03d71e2ca39985ac35cf734 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Tue, 24 Feb 2026 14:42:42 +0100 Subject: [PATCH] Set the CRC banner on the game screen to fit contents, instead of the screen. Also make sure it's not visible when it shouldn't be --- UI/GameScreen.cpp | 8 ++------ UI/PauseScreen.cpp | 2 +- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/UI/GameScreen.cpp b/UI/GameScreen.cpp index 76e620b1d8..f1e7cd1d27 100644 --- a/UI/GameScreen.cpp +++ b/UI/GameScreen.cpp @@ -335,7 +335,7 @@ void GameScreen::CreateContentViews(UI::ViewGroup *parent) { } } if (found) { - NoticeView *tvVerified = infoLayout->Add(new NoticeView(NoticeLevel::INFO, ga->T("ISO OK according to the ReDump project"), "", new LinearLayoutParams(FILL_PARENT, WRAP_CONTENT))); + NoticeView *tvVerified = infoLayout->Add(new NoticeView(NoticeLevel::INFO, ga->T("ISO OK according to the ReDump project"), "", new LinearLayoutParams(WRAP_CONTENT, WRAP_CONTENT))); tvVerified->SetLevel(NoticeLevel::SUCCESS); } } @@ -359,17 +359,13 @@ void GameScreen::CreateContentViews(UI::ViewGroup *parent) { // INFO_LOG(Log::Loader, "File size %d not matching game DB", (int)info_->gameSizeUncompressed); } - NoticeView *tvVerified = infoLayout->Add(new NoticeView(NoticeLevel::INFO, ga->T("Click \"Calculate CRC\" to verify ISO"), "", new LinearLayoutParams(FILL_PARENT, WRAP_CONTENT))); + NoticeView *tvVerified = infoLayout->Add(new NoticeView(NoticeLevel::INFO, ga->T("Click \"Calculate CRC\" to verify ISO"), "", new LinearLayoutParams(WRAP_CONTENT, WRAP_CONTENT))); tvVerified->SetVisibility(UI::V_VISIBLE); tvVerified->SetLevel(NoticeLevel::INFO); } } } - NoticeView *tvVerified = infoLayout->Add(new NoticeView(NoticeLevel::INFO, ga->T("Click \"Calculate CRC\" to verify ISO"), "", new LinearLayoutParams(FILL_PARENT, WRAP_CONTENT))); - tvVerified->SetVisibility(UI::V_GONE); - tvVerified->SetSquishy(true); - // Show plugin info_, if any. Later might add checkboxes. auto plugins = HLEPlugins::FindPlugins(info_->id, g_Config.sLanguageIni); if (!plugins.empty()) { diff --git a/UI/PauseScreen.cpp b/UI/PauseScreen.cpp index cc08a91225..20be293c1f 100644 --- a/UI/PauseScreen.cpp +++ b/UI/PauseScreen.cpp @@ -833,7 +833,7 @@ std::string GetConfirmExitMessage() { return confirmMessage; } auto di = GetI18NCategory(I18NCat::DIALOG); - confirmMessage = ApplySafeSubstitutions(di->T("You haven't saved your progress for %1."), NiceTimeFormat((int)unsavedSeconds)); + confirmMessage += ApplySafeSubstitutions(di->T("You haven't saved your progress for %1."), NiceTimeFormat((int)unsavedSeconds)); confirmMessage += '\n'; }