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

Function mswin_curs

win/win32/mswproc.c:965–978  ·  view source on GitHub ↗

Next output to window will start at (x,y), also moves displayable cursor to (x,y). For backward compatibility, 1 <= x < cols, 0 <= y < rows, where cols and rows are the size of window. */

Source from the content-addressed store, hash-verified

963 the size of window.
964*/
965void
966mswin_curs(winid wid, int x, int y)
967{
968 logDebug("mswin_curs(%d, %d, %d)\n", wid, x, y);
969
970 if ((wid >= 0) && (wid < MAXWINDOWS)
971 && (GetNHApp()->windowlist[wid].win != NULL)) {
972 MSNHMsgCursor data;
973 data.x = x;
974 data.y = y;
975 SendMessage(GetNHApp()->windowlist[wid].win, WM_MSNH_COMMAND,
976 (WPARAM) MSNH_MSG_CURSOR, (LPARAM) &data);
977 }
978}
979
980/*
981putstr(window, attr, str)

Callers

nothing calls this directly

Calls 2

logDebugFunction · 0.70
GetNHAppFunction · 0.70

Tested by

no test coverage detected