mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-11 16:49:27 +01:00
Correct corner radius of popups to match inner rounded things
This commit is contained in:
1 parent
37fa5896c1
commit
d09a9ffa11
3 files changed
+6
-1
No files matched your search
@@ -188,7 +188,8 @@ void ViewGroup::Draw(UIContext &dc) {
|
||||
}
|
||||
|
||||
if (roundCorners_ != RoundCorners::None) {
|
||||
dc.FillRoundRect(bg_, bounds_, dc.GetTheme().choiceRoundRadius, roundCorners_);
|
||||
// Surrounding round rects (like windows) need a bigger radius to look right.
|
||||
dc.FillRoundRect(bg_, bounds_, dc.GetTheme().choiceRoundRadius * radiusFactor_, roundCorners_);
|
||||
} else {
|
||||
dc.FillRect(bg_, bounds_);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user