Disable alpha for save/load icons in sceUtility UI

This commit is contained in:
Henrik Rydgård committed 2026-09-21 10:41:35 -06:00
1 parent 0b5a8f537e
commit 0a5fa27957
3 files changed
+11 -2

No files matched your search

+4 -2
View File
@@ -412,6 +412,7 @@ void PSPSaveDialog::DisplaySaveList(bool canMove) {
for (int displayCount = 0; displayCount < param.GetFilenameCount(); displayCount++) { for (int displayCount = 0; displayCount < param.GetFilenameCount(); displayCount++) {
PPGeImageStyle imageStyle = FadedImageStyle(); PPGeImageStyle imageStyle = FadedImageStyle();
imageStyle.alphaBlend = false;
auto fileInfo = param.GetFileInfo(displayCount); auto fileInfo = param.GetFileInfo(displayCount);
if (fileInfo.size == 0 && fileInfo.texture && fileInfo.texture->IsValid()) 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); std::lock_guard<std::mutex> guard(paramLock);
PPGeImageStyle imageStyle = FadedImageStyle(); PPGeImageStyle imageStyle = FadedImageStyle();
imageStyle.alphaBlend = false;
auto curSave = param.GetFileInfo(currentSelectedSave); auto curSave = param.GetFileInfo(currentSelectedSave);
if (curSave.size == 0 && checkExists) if (curSave.size == 0 && checkExists)
+6
View File
@@ -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) { 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) if (!dlPtr)
return; return;
if (!style.alphaBlend) {
WriteCmd(GE_CMD_ALPHABLENDENABLE, 0);
}
BeginVertexData(); BeginVertexData();
Vertex(x, y, u1, v1, tw, th, style.color); Vertex(x, y, u1, v1, tw, th, style.color);
Vertex(x + w, y + h, u2, v2, tw, th, style.color); Vertex(x + w, y + h, u2, v2, tw, th, style.color);
EndVertexDataAndDraw(GE_PRIM_RECTANGLES); EndVertexDataAndDraw(GE_PRIM_RECTANGLES);
if (!style.alphaBlend) {
WriteCmd(GE_CMD_ALPHABLENDENABLE, 1);
}
} }
void PPGeSetDefaultTexture() void PPGeSetDefaultTexture()
+1
View File
@@ -85,6 +85,7 @@ struct PPGeStyle {
struct PPGeImageStyle { struct PPGeImageStyle {
uint32_t color = 0xFFFFFFFF; uint32_t color = 0xFFFFFFFF;
bool alphaBlend = true;
}; };
// Get the metrics of the bounding box of the text without changing the buffer or state. // Get the metrics of the bounding box of the text without changing the buffer or state.