mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-13 09:39:33 +01:00
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:
1 parent
95e7f2d686
commit
ec36fad065
1 file changed
+2
-1
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user