mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-16 16:00:30 +02:00
Remove redundant "pin" icon from directory buttons on main screen
This commit is contained in:
1 parent
910fadc6bc
commit
9a2e74d210
2 files changed
+5
-10
No files matched your search
@@ -499,11 +499,6 @@ void DirButton::Draw(UIContext &dc) {
|
||||
|
||||
if (image == ImageID("I_FOLDER") || image == ImageID("I_FOLDER_PINNED")) {
|
||||
dc.DrawTextRect(text, bounds_.Inset(5, y + iconSize + 4, 5, 2), style.fgColor, ALIGN_HCENTER | FLAG_WRAP_TEXT);
|
||||
if (pinned_) {
|
||||
ImageID pinID = ImageID("I_PIN");
|
||||
const AtlasImage *pinImg = dc.Draw()->GetAtlas()->getImage(pinID);
|
||||
dc.Draw()->DrawImage(pinID, bounds_.x + bounds_.w - pinImg->w * g_Config.fGameGridScale, bounds_.y, g_Config.fGameGridScale);
|
||||
}
|
||||
}
|
||||
dc.SetFontStyle(dc.GetTheme().uiFont);
|
||||
dc.PopScissor();
|
||||
|
||||
Reference in new issue
Block a user