mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-01 14:58:14 +00:00
Disable alpha for save/load icons in sceUtility UI
This commit is contained in:
1 parent
0b5a8f537e
commit
0a5fa27957
3 files changed
+11
-2
No files matched your search
@@ -412,6 +412,7 @@ void PSPSaveDialog::DisplaySaveList(bool canMove) {
|
||||
|
||||
for (int displayCount = 0; displayCount < param.GetFilenameCount(); displayCount++) {
|
||||
PPGeImageStyle imageStyle = FadedImageStyle();
|
||||
imageStyle.alphaBlend = false;
|
||||
auto fileInfo = param.GetFileInfo(displayCount);
|
||||
|
||||
if (fileInfo.size == 0 && fileInfo.texture && fileInfo.texture->IsValid())
|
||||
@@ -472,10 +473,11 @@ void PSPSaveDialog::DisplaySaveList(bool canMove) {
|
||||
}
|
||||
}
|
||||
|
||||
void PSPSaveDialog::DisplaySaveIcon(bool checkExists)
|
||||
{
|
||||
void PSPSaveDialog::DisplaySaveIcon(bool checkExists) {
|
||||
std::lock_guard<std::mutex> guard(paramLock);
|
||||
PPGeImageStyle imageStyle = FadedImageStyle();
|
||||
imageStyle.alphaBlend = false;
|
||||
|
||||
auto curSave = param.GetFileInfo(currentSelectedSave);
|
||||
|
||||
if (curSave.size == 0 && checkExists)
|
||||
|
||||
@@ -1299,10 +1299,16 @@ void PPGeDrawImage(ImageID atlasImage, float x, float y, float w, float h, const
|
||||
void PPGeDrawImage(float x, float y, float w, float h, float u1, float v1, float u2, float v2, int tw, int th, const PPGeImageStyle &style) {
|
||||
if (!dlPtr)
|
||||
return;
|
||||
if (!style.alphaBlend) {
|
||||
WriteCmd(GE_CMD_ALPHABLENDENABLE, 0);
|
||||
}
|
||||
BeginVertexData();
|
||||
Vertex(x, y, u1, v1, tw, th, style.color);
|
||||
Vertex(x + w, y + h, u2, v2, tw, th, style.color);
|
||||
EndVertexDataAndDraw(GE_PRIM_RECTANGLES);
|
||||
if (!style.alphaBlend) {
|
||||
WriteCmd(GE_CMD_ALPHABLENDENABLE, 1);
|
||||
}
|
||||
}
|
||||
|
||||
void PPGeSetDefaultTexture()
|
||||
|
||||
@@ -85,6 +85,7 @@ struct PPGeStyle {
|
||||
|
||||
struct PPGeImageStyle {
|
||||
uint32_t color = 0xFFFFFFFF;
|
||||
bool alphaBlend = true;
|
||||
};
|
||||
|
||||
// Get the metrics of the bounding box of the text without changing the buffer or state.
|
||||
|
||||
Reference in new issue
Block a user