MCPcopy Create free account
hub / github.com/NetHack/NetHack / macCursorTerm

Function macCursorTerm

outdated/sys/mac/macwin.c:2296–2311  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2294}
2295
2296static void
2297macCursorTerm(EventRecord *theEvent, WindowPtr theWindow, RgnHandle mouseRgn)
2298{
2299 GrafPtr gp;
2300 Point where = theEvent->where;
2301 Rect r = { 0, 0, 1, 1 };
2302
2303 GetPort(&gp);
2304 SetPortWindowPort(theWindow);
2305 GlobalToLocal(&where);
2306 BaseCursor(GetNhWin(theWindow), where);
2307 OffsetRect(&r, theEvent->where.h, theEvent->where.v);
2308 RectRgn(mouseRgn, &r);
2309 SetPort(gp);
2310 return;
2311}
2312
2313#endif /* !TARGET_API_MAC_CARBON */
2314

Callers

nothing calls this directly

Calls 2

BaseCursorFunction · 0.85
GetNhWinFunction · 0.85

Tested by

no test coverage detected