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

Function vesa_xputc

sys/msdos/vidvesa.c:651–674  ·  view source on GitHub ↗

write out character (and attribute) */

Source from the content-addressed store, hash-verified

649
650/* write out character (and attribute) */
651void
652vesa_xputc(char ch, int attr)
653{
654 int col, row;
655
656 col = curcol;
657 row = currow;
658
659 switch (ch) {
660 case '\n':
661 col = 0;
662 ++row;
663 break;
664 default:
665 vesa_WriteChar((unsigned char) ch, col, row, attr);
666 if (ch == '.') {
667 vesa_flush_text();
668 }
669 if (col < (CO - 1))
670 ++col;
671 break;
672 } /* end switch */
673 vesa_gotoloc(col, row);
674}
675
676#if defined(TILES_IN_GLYPHMAP)
677/* Place tile represent. a glyph at current location */

Callers 1

xputcFunction · 0.85

Calls 3

vesa_WriteCharFunction · 0.85
vesa_flush_textFunction · 0.85
vesa_gotolocFunction · 0.85

Tested by

no test coverage detected