mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-15 23:40:29 +02:00
Split gear.png into two new svg icons, a small (for indicators) and a large one (for buttons)
This commit is contained in:
1 parent
9bed94d8f9
commit
9d0dfea04f
4 files changed
+1376
-1366
No files matched your search
+3
-3
@@ -376,12 +376,12 @@ void GameButton::Draw(UIContext &dc) {
|
||||
}
|
||||
|
||||
if (ginfo->hasConfig && !ginfo->id.empty()) {
|
||||
const AtlasImage *gearImage = dc.Draw()->GetAtlas()->getImage(ImageID("I_GEAR"));
|
||||
const AtlasImage *gearImage = dc.Draw()->GetAtlas()->getImage(ImageID("I_GEAR_SMALL"));
|
||||
if (gearImage) {
|
||||
if (gridStyle_) {
|
||||
dc.Draw()->DrawImage(ImageID("I_GEAR"), bounds_.x, y + h - gearImage->h*g_Config.fGameGridScale, g_Config.fGameGridScale);
|
||||
dc.Draw()->DrawImage(ImageID("I_GEAR_SMALL"), bounds_.x, y + h - gearImage->h*g_Config.fGameGridScale, g_Config.fGameGridScale);
|
||||
} else {
|
||||
dc.Draw()->DrawImage(ImageID("I_GEAR"), bounds_.x - 1, y, 1.0f);
|
||||
dc.Draw()->DrawImage(ImageID("I_GEAR_SMALL"), bounds_.x + 4, y, 1.0f);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user