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

Function mar_print_gl_char

outdated/win/gem/wingem.c:913–931  ·  view source on GitHub ↗
(window, x, y, glyph)

Source from the content-addressed store, hash-verified

911void mar_print_char(winid, coordxy, coordxy, char, int);
912
913void
914mar_print_gl_char(window, x, y, glyph)
915winid window;
916coordxy x, y;
917int glyph;
918{
919 int ch;
920 int color;
921 unsigned special;
922
923 /* map glyph to character and color */
924 (void) mapglyph(glyph, &ch, &color, &special, x, y, 0);
925
926 /* Turn off color if rogue level. */
927 if (Is_rogue_level(&u.uz))
928 color = NO_COLOR;
929
930 mar_print_char(window, x, y, ch, color);
931}
932
933extern void mar_raw_print(const char *);
934extern void mar_raw_print_bold(const char *);

Callers 1

Gem_print_glyphFunction · 0.85

Calls 1

mar_print_charFunction · 0.85

Tested by

no test coverage detected