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

Function mswin_map_get_cursor

outdated/sys/wince/mhmap.c:310–322  ·  view source on GitHub ↗

retrieve cursor position */

Source from the content-addressed store, hash-verified

308
309/* retrieve cursor position */
310void
311mswin_map_get_cursor(HWND hWnd, int *x, int *y)
312{
313 PNHMapWindow data;
314
315 data = (PNHMapWindow) GetWindowLong(hWnd, GWL_USERDATA);
316 if (!data)
317 panic("mswin_map_get_cursor: no window data");
318 if (x)
319 *x = data->xCur;
320 if (y)
321 *y = data->yCur;
322}
323
324/* register window class for map window */
325void

Callers 1

MainWndProcFunction · 0.85

Calls 1

panicFunction · 0.50

Tested by

no test coverage detected