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). */
| 1209 | a 1-1 map between glyphs and distinct things on the map). |
| 1210 | */ |
| 1211 | void |
| 1212 | mswin_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 | /* |
| 1230 | raw_print(str) -- Print directly to a screen, or otherwise guarantee that |