From 8714fbf84403700ba3379dcbde971b316e562b77 Mon Sep 17 00:00:00 2001 From: Phillip Stephens Date: Tue, 8 Mar 2022 23:48:22 -0800 Subject: [PATCH] CAuiImagePane: helps if you actually use the coordinates and not an empty vector... --- Runtime/GuiSys/CAuiImagePane.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Runtime/GuiSys/CAuiImagePane.cpp b/Runtime/GuiSys/CAuiImagePane.cpp index b5174b376..29220f756 100644 --- a/Runtime/GuiSys/CAuiImagePane.cpp +++ b/Runtime/GuiSys/CAuiImagePane.cpp @@ -81,9 +81,9 @@ void CAuiImagePane::DoDrawImagePane(const zeus::CColor& color, CTexture& tex, in tex.Load(GX::TEXMAP0, EClampMode::Repeat); CGraphics::StreamBegin(GX::TRIANGLESTRIP); CGraphics::StreamColor(useColor); - for (u32 i = 0; i < 4; ++i) { + for (u32 i = 0; i < useUVs->size(); ++i) { CGraphics::StreamTexcoord((*useUVs)[i]); - CGraphics::StreamVertex(vec[i]); + CGraphics::StreamVertex(xe0_coords[i]); } CGraphics::StreamEnd(); } else if ((x14c_deResFactor == 0.f && alpha == 1.f) || tex.GetNumberOfMipMaps() == 1) { @@ -92,9 +92,9 @@ void CAuiImagePane::DoDrawImagePane(const zeus::CColor& color, CTexture& tex, in tex.LoadMipLevel(0.f, GX::TEXMAP0, EClampMode::Repeat); CGraphics::StreamBegin(GX::TRIANGLESTRIP); CGraphics::StreamColor(useColor); - for (u32 i = 0; i < 4; ++i) { + for (u32 i = 0; i < useUVs->size(); ++i) { CGraphics::StreamTexcoord((*useUVs)[i] + xd0_uvBias0); - CGraphics::StreamVertex(vec[i]); + CGraphics::StreamVertex(xe0_coords[i]); } CGraphics::StreamEnd(); } else {