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

Function mac_curs

outdated/sys/mac/macwin.c:1904–1919  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1902}
1903
1904void
1905mac_curs(winid win, int x, int y)
1906{
1907 NhWindow *aWin = &theWindows[win];
1908
1909 if (aWin->its_window == _mt_window) {
1910 tty_curs(win, x, y);
1911 return;
1912 }
1913
1914 SetPortWindowPort(aWin->its_window);
1915 MoveTo(x * aWin->char_width,
1916 (y * aWin->row_height) + aWin->ascent_height);
1917 aWin->x_curs = x;
1918 aWin->y_curs = y;
1919}
1920
1921int
1922mac_nh_poskey(int *a, int *b, int *c)

Callers

nothing calls this directly

Calls 1

tty_cursFunction · 0.85

Tested by

no test coverage detected