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

Function mswin_cliparound

outdated/sys/wince/mswproc.c:1187–1202  ·  view source on GitHub ↗

cliparound(x, y)-- Make sure that the user is more-or-less centered on the screen if the playing area is larger than the screen. -- This function is only defined if CLIPPING is defined. */

Source from the content-addressed store, hash-verified

1185 -- This function is only defined if CLIPPING is defined.
1186*/
1187void
1188mswin_cliparound(int x, int y)
1189{
1190 winid wid = WIN_MAP;
1191
1192 logDebug("mswin_cliparound(%d, %d)\n", x, y);
1193
1194 if ((wid >= 0) && (wid < MAXWINDOWS)
1195 && (GetNHApp()->windowlist[wid].win != NULL)) {
1196 MSNHMsgClipAround data;
1197 data.x = x;
1198 data.y = y;
1199 SendMessage(GetNHApp()->windowlist[wid].win, WM_MSNH_COMMAND,
1200 (WPARAM) MSNH_MSG_CLIPAROUND, (LPARAM) &data);
1201 }
1202}
1203
1204/*
1205print_glyph(window, x, y, glyph, bkglyph)

Callers 2

mswin_map_stretchFunction · 0.70
mswin_preference_updateFunction · 0.70

Calls 2

logDebugFunction · 0.70
GetNHAppFunction · 0.70

Tested by

no test coverage detected