Mac D2GFX_DrawLine: void __cdecl (nXStart, nYStart, nXEnd, nYEnd, DWORD nColor, DWORD nAlpha)
The Mac body is a pure tail-jump wrapper: it loads the active renderer table and JMPs to its +0xcc slot with the caller's stack untouched. So the arguments are whatever the caller pushes for the line call. The caller WEATHER_Draw 0x0006dcb5 stores [ESP]..[ESP+0xc] as start/end x,y (base + offsets) and the colour/alpha bytes above them, matching the Windows twin 0x004f6380 (nXStart, nYStart, nXEnd, nYEnd, nColor, nAlpha). Mac cdecl, no return.
Changes 1, applied together
Set prototype
mac 0x002b5122signatureundefined D2GFX_DrawLine(void)→void D2GFX_DrawLine(int32_t nXStart, int32_t nYStart, int32_t nXEnd, int32_t nYEnd, DWORD nColor, DWORD nAlpha)conventionunknown→__cdecl