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

Function mswin_curs

outdated/sys/wince/mswproc.c:892–905  ·  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

890 the size of window.
891*/
892void
893mswin_curs(winid wid, int x, int y)
894{
895 logDebug("mswin_curs(%d, %d, %d)\n", wid, x, y);
896
897 if ((wid >= 0) && (wid < MAXWINDOWS)
898 && (GetNHApp()->windowlist[wid].win != NULL)) {
899 MSNHMsgCursor data;
900 data.x = x;
901 data.y = y;
902 SendMessage(GetNHApp()->windowlist[wid].win, WM_MSNH_COMMAND,
903 (WPARAM) MSNH_MSG_CURSOR, (LPARAM) &data);
904 }
905}
906
907/*
908putstr(window, attr, str)

Callers

nothing calls this directly

Calls 2

logDebugFunction · 0.70
GetNHAppFunction · 0.70

Tested by

no test coverage detected