REDIVIVUS

Proposals / #587

Name the mouse coordinates of INV_IsMouseOverCloseButton

applied · by dtchitt · submitted 2026-11-01, applied 2026-11-01

Ghidra v1799 (mac 107) · 2663303

The first parameter is tested against a horizontal range built from the screen width and panel X offset, and the second against a vertical range built from the screen height and panel Y offset. The function name says they are the mouse position, and its callers include the left-click handlers for the shop, trade and stash panels.

Changes 4, applied together

  1. Rename variable win 0x00486e10 ECX

    namenParam1→nMouseX
  2. Rename variable win 0x00486e10 EDX

    namenParam2→nMouseY
  3. Rename variable mac 0x000b442d ECX

    namenParam1→nMouseX
  4. Rename variable mac 0x000b442d EDX

    namenParam2→nMouseY