REDIVIVUS

Proposals / #1581

Mac Wnd_FindWindowNeedingPaint: void* __fastcc (void* pWnd ECX)

checked · by KierTaylor · submitted 2026-11-08

ECX -> ESI = a window: if its +0x74 update flag is set it returns the window itself. Otherwise it recurses into each child (first child at +0x54, sibling link at +0x58), calling itself with ECX = child (0x0002936c), and returns the first non-NULL result, else 0. There are no stack args. Callers: Msg_GetPendingMessage and its own recursion.

Changes 1, applied together

  1. Set prototype mac 0x0002934e

    signatureundefined Wnd_FindWindowNeedingPaint(void)→void* Wnd_FindWindowNeedingPaint(void* pWnd)
    conventionunknown→__fastcc