mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-12 22:10:29 +02:00
Fix bug that caused us to always show UNKNOWN.PNG for PBP files in recent list and new ui
This commit is contained in:
1 parent
f528774b39
commit
bf58b32208
2 files changed
+6
-5
No files matched your search
@@ -201,6 +201,9 @@ public:
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
break;
|
||||
|
||||
case FILETYPE_PSP_ELF:
|
||||
// An elf on its own has no usable information, no icons, no nothing.
|
||||
info_->title = getFilename(filename);
|
||||
@@ -220,7 +223,7 @@ public:
|
||||
delete [] contents;
|
||||
}
|
||||
|
||||
return;
|
||||
break;
|
||||
|
||||
case FILETYPE_PSP_ISO:
|
||||
case FILETYPE_PSP_ISO_NP:
|
||||
|
||||
+2
-4
@@ -104,16 +104,14 @@ void GameButton::Draw(UIContext &dc) {
|
||||
}
|
||||
|
||||
if (texture) {
|
||||
dc.Draw()->Flush();
|
||||
texture->Bind(0);
|
||||
dc.Draw()->DrawTexRect(x, y, x+w, y+h, 0, 0, 1, 1, color);
|
||||
dc.Draw()->Flush();
|
||||
dc.RebindTexture();
|
||||
} else {
|
||||
dc.FillRect(dc.theme->buttonStyle.background, bounds_);
|
||||
dc.Draw()->Flush();
|
||||
Texture::Unbind();
|
||||
}
|
||||
|
||||
dc.RebindTexture();
|
||||
}
|
||||
|
||||
// Abstraction above path that lets you navigate easily.
|
||||
|
||||
Reference in new issue
Block a user