Fix en_mag pointer math (#105)

This commit is contained in:
Garrett Cox 2024-01-26 00:38:16 +00:00
parent 329ad7db6c
commit c377b07ef7

View File

@ -556,7 +556,9 @@ void EnMag_DrawImageRGBA32(Gfx** gfxp, s16 centerX, s16 centerY, TexturePtr sour
Gfx_SetupDL56_Ptr(&gfx);
curTexture = (uintptr_t)source;
// #region 2S2H [Port] Originally this was just a pointer to the texture, now it's the OTR path so we need to grab it's actual address
curTexture = ResourceMgr_LoadTexOrDListByName(source);
// #endregion
rectLeft = centerX - (width / 2);
rectTop = centerY - (height / 2);
textureHeight = TMEM_SIZE / (width << 2);