PauseScreen: Make the savestate numbers more visible by moving them out

This commit is contained in:
Henrik Rydgård
2025-11-22 14:56:19 +01:00
parent e711fdb735
commit 24bcc10985
3 changed files with 8 additions and 19 deletions
-7
View File
@@ -95,10 +95,6 @@ void AsyncImageFileView::Draw(UIContext &dc) {
dc.Draw()->Rect(bounds_.x, bounds_.y, bounds_.w, bounds_.h, color_);
dc.Flush();
dc.RebindTexture();
if (!text_.empty()) {
dc.DrawText(text_, bounds_.centerX() + 1, bounds_.centerY() + 1, 0x80000000, ALIGN_CENTER | FLAG_DYNAMIC_ASCII);
dc.DrawText(text_, bounds_.centerX(), bounds_.centerY(), 0xFFFFFFFF, ALIGN_CENTER | FLAG_DYNAMIC_ASCII);
}
} else {
if (!texture_ || texture_->Failed()) {
if (!filename_.empty()) {
@@ -109,8 +105,5 @@ void AsyncImageFileView::Draw(UIContext &dc) {
dc.FillRect(UI::Drawable(0x50202020), GetBounds());
}
}
if (!text_.empty()) {
dc.DrawText(text_, bounds_.centerX(), bounds_.centerY(), 0xFFFFFFFF, ALIGN_CENTER | FLAG_DYNAMIC_ASCII);
}
}
}