REDIVIVUS

Proposals / #1278

Mac D2GFX_DrawTransWallTile: BOOL __cdecl (pTile, nPosX, nPosY, pLight, nScreenPanels, BYTE nAlpha)

checked · by KierTaylor · submitted 2026-11-06

The Mac body is a tail-jump wrapper (renderer table slot +0xac, stack untouched). WALL2_DrawWallTilesWithAlpha 0x00062e10 stores the same five slots as for DrawWallTile plus [ESP+0x14]=MOVZX DL (the alpha byte, used when it is not 0xff), then tests EAX. Matches the Windows twin 0x004f6950 (BOOL; pTile, nPosX, nPosY, pLight, nScreenPanels, BYTE nAlpha).

Changes 1, applied together

  1. Set prototype mac 0x002b56b3

    signatureundefined D2GFX_DrawTransWallTile(void)→BOOL D2GFX_DrawTransWallTile(D2TileLibraryEntryStrc* pTile, int32_t nPosX, int32_t nPosY, D2GfxLightStrc* pLight, int32_t nScreenPanels, BYTE nAlpha)
    conventionunknown→__cdecl