REDIVIVUS

Proposals / #1279

Mac D2GFX_DrawShadowTile: BOOL __cdecl (pTile, nPosX, nPosY, nDrawMode, nScreenPanels)

checked · by KierTaylor · submitted 2026-11-06

The Mac body is a tail-jump wrapper (renderer table slot +0xb0, stack untouched). The caller dShadowPass 0x0006317e stores five slots: [ESP]=tile, [ESP+4]/[ESP+8]=x/y, [ESP+0xc]=4 (draw mode), [ESP+0x10]=panels. Matches the Windows twin 0x004f6980 (BOOL; pTile, nPosX, nPosY, nDrawMode, nScreenPanels).

Changes 1, applied together

  1. Set prototype mac 0x002b56cd

    signatureundefined D2GFX_DrawShadowTile(void)→BOOL D2GFX_DrawShadowTile(D2TileLibraryEntryStrc* pTile, int32_t nPosX, int32_t nPosY, int32_t nDrawMode, int32_t nScreenPanels)
    conventionunknown→__cdecl