REDIVIVUS

Proposals / #1589

Mac Edit_RecalculateLineOffsets: void __fastcc (void* pWindow ECX, void* pEditData EDX)

checked · by KierTaylor · submitted 2026-11-08

ECX -> [EBP-0x30] = the edit window (GetDC 0x00024573, ReleaseDC 0x00024665 at the end). EDX -> EDI = the edit state: it frees the old +0x3c line-offset array (0x00029a30), zeroes +0x34 line count, and rebuilds both by breaking the +0x48 text (+0x14 length) against the client width. There are no stack args. Plain RET; EAX is only ReleaseDC's leftover (or GetDC's NULL on early exit).

Changes 1, applied together

  1. Set prototype mac 0x00020f78

    signatureundefined Edit_RecalculateLineOffsets(void)→void Edit_RecalculateLineOffsets(void* pWindow, void* pEditData)
    conventionunknown→__fastcc