summaryrefslogtreecommitdiff
path: root/mm/src/code
diff options
context:
space:
mode:
authorGarrett Cox <garrettjcox@gmail.com>2025-01-29 18:11:17 -0600
committerGitHub <noreply@github.com>2025-01-29 18:11:17 -0600
commit41ebe7ef782df24dc8eca34839d88538677d1ff0 (patch)
tree4109f2de95a07cc5d21a823c8770a46d647cc93b /mm/src/code
parent26012da2335440521ada10182a03dfba0db4dbc7 (diff)
Fix sizing of gGoldSkulltulaCounterIconTex load (#975)
Diffstat (limited to 'mm/src/code')
-rw-r--r--mm/src/code/z_parameter.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/mm/src/code/z_parameter.c b/mm/src/code/z_parameter.c
index 7ad3815cb..bbb00c649 100644
--- a/mm/src/code/z_parameter.c
+++ b/mm/src/code/z_parameter.c
@@ -8411,8 +8411,9 @@ void Interface_Draw(PlayState* play) {
gDPSetPrimColor(OVERLAY_DISP++, 0, 0, 255, 255, 255, interfaceCtx->magicAlpha);
gDPSetEnvColor(OVERLAY_DISP++, 0, 0, 0, 255);
- gDPLoadTextureBlock(OVERLAY_DISP++, gGoldSkulltulaCounterIconTex, G_IM_FMT_RGBA, G_IM_SIZ_32b, 24,
- 24, // 2S2H [Port] This last 24 was 18 in the minibuild, not sure why
+ // @bug: This texture has a size of 24x18, but the original code reads in 24x24, reading garbage data
+ // 2S2H [Port] We are opting to fix this by using the correct size
+ gDPLoadTextureBlock(OVERLAY_DISP++, gGoldSkulltulaCounterIconTex, G_IM_FMT_RGBA, G_IM_SIZ_32b, 24, 18,
0, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOMASK,
G_TX_NOLOD, G_TX_NOLOD);