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

Function mar_print_char

outdated/win/gem/wingem1.c:2945–2971  ·  view source on GitHub ↗
(window, x, y, ch, col)

Source from the content-addressed store, hash-verified

2943}
2944
2945void
2946mar_print_char(window, x, y, ch, col)
2947winid window;
2948int x, y;
2949char ch;
2950int col;
2951{
2952 if (window != WIN_ERR && window == WIN_MAP) {
2953 static int gem_color[16] = { 9, 2, 11, 10, 4, 7, 8, 15,
2954 0, 14, 3, 6, 5, 13, 15, 0 };
2955 int pla[8], colindex[2];
2956
2957 map_glyphs[y][x] = ch;
2958
2959 pla[0] = pla[1] = 0;
2960 pla[2] = map_font.cw - 1;
2961 pla[3] = map_font.ch - 1;
2962 pla[6] = pla[4] = map_font.cw * x;
2963 pla[7] = pla[5] = map_font.ch * y;
2964 pla[6] += map_font.cw - 1;
2965 pla[7] += map_font.ch - 1;
2966 colindex[0] = gem_color[col];
2967 colindex[1] = WHITE;
2968 vrt_cpyfm(x_handle, MD_REPLACE, pla, &Black_bild, &FontCol_Bild,
2969 colindex);
2970 }
2971}
2972
2973/************************* getlin *******************************/
2974

Callers 1

mar_print_gl_charFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected