mirror of
https://github.com/HarbourMasters/2ship2harkinian.git
synced 2024-11-27 00:00:32 +00:00
Fix en_mag pointer math (#105)
This commit is contained in:
parent
329ad7db6c
commit
c377b07ef7
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user