Savedata manager: Make the highlight outline show up

An outline with a zero radius isn't drawn at all, so use square corners
instead. Medium width, so it doesn't look like the gaps between rows.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Henrik RydgårdandClaude Opus 5.5 committed 2026-11-11 12:14:46 +01:00
1 parent 95e7f2d686
commit ec36fad065
1 file changed
+2 -1
+2 -1
View File
@@ -491,7 +491,8 @@ void SavedataButton::Draw(UIContext &dc) {
dc.RebindTexture();
if (highlighted_) {
dc.Draw()->DrawRoundRect(bounds_, 0.0f, 0xFFFFFFFF, RoundRectStyle::OutlineThin);
// Square corners. (A zero radius draws no outline at all.) Medium, since a thin line looks like the gaps between the rows.
dc.Draw()->DrawRoundRect(bounds_, ROUND_RECT_RADII[0], 0xFFFFFFFF, RoundRectStyle::OutlineMedium, RoundCorners::None);
dc.Draw()->Flush();
}
}