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

Function mswin_print_glyph

outdated/sys/wince/mswproc.c:1211–1227  ·  view source on GitHub ↗

print_glyph(window, x, y, glyph, bkglyph) -- Print the glyph at (x,y) on the given window. Glyphs are integers at the interface, mapped to whatever the window- port wants (symbol, font, color, attributes, ...there's a 1-1 map between glyphs and distinct things on the map). */

Source from the content-addressed store, hash-verified

1209 a 1-1 map between glyphs and distinct things on the map).
1210*/
1211void
1212mswin_print_glyph(winid wid, XCHAR_P x, XCHAR_P y, int glyph, int bkglyph)
1213{
1214 logDebug("mswin_print_glyph(%d, %d, %d, %d, %d)\n", wid, x, y, glyph, bkglyph);
1215
1216 if ((wid >= 0) && (wid < MAXWINDOWS)
1217 && (GetNHApp()->windowlist[wid].win != NULL)) {
1218 MSNHMsgPrintGlyph data;
1219
1220 ZeroMemory(&data, sizeof(data));
1221 data.x = x;
1222 data.y = y;
1223 data.glyph = glyph;
1224 SendMessage(GetNHApp()->windowlist[wid].win, WM_MSNH_COMMAND,
1225 (WPARAM) MSNH_MSG_PRINT_GLYPH, (LPARAM) &data);
1226 }
1227}
1228
1229/*
1230raw_print(str) -- Print directly to a screen, or otherwise guarantee that

Callers

nothing calls this directly

Calls 2

logDebugFunction · 0.70
GetNHAppFunction · 0.70

Tested by

no test coverage detected