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

Function vesa_WriteChar

sys/msdos/vidvesa.c:1582–1595  ·  view source on GitHub ↗

* Write character 'ch', at (x,y) and * do it using the colour 'colour'. * */

Source from the content-addressed store, hash-verified

1580 *
1581 */
1582static void
1583vesa_WriteChar(uint32 chr, int col, int row, uint32 colour)
1584{
1585 int pixx, pixy;
1586
1587 /* min() protects from callers */
1588 pixx = min(col, (CO - 1)) * vesa_char_width;
1589 pixy = min(row, (LI - 1)) * vesa_char_height;
1590
1591 pixx += vesa_x_center;
1592 pixy += vesa_y_center;
1593
1594 vesa_WriteCharXY(chr, pixx, pixy, colour);
1595}
1596
1597/*
1598 * As vesa_WriteChar, but specify coordinates by pixel and allow

Callers 3

vesa_xputcFunction · 0.85
vesa_xputgFunction · 0.85
vesa_WriteStrFunction · 0.85

Calls 1

vesa_WriteCharXYFunction · 0.85

Tested by

no test coverage detected