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

Function vesa_WriteCharTransparent

sys/msdos/vidvesa.c:1631–1643  ·  view source on GitHub ↗

* Draw a character with a transparent background * Don't bother caching; only the position bar and the cursor use this */

Source from the content-addressed store, hash-verified

1629 * Don't bother caching; only the position bar and the cursor use this
1630 */
1631static void
1632vesa_WriteCharTransparent(int chr, int pixx, int pixy, int colour)
1633{
1634 int px, py;
1635
1636 for (py = 0; py < (int) vesa_char_height; ++py) {
1637 for (px = 0; px < (int) vesa_char_width; ++px) {
1638 if (vesa_GetCharPixel(chr, px, py)) {
1639 vesa_WritePixel(pixx + px, pixy + py, colour + FIRST_TEXT_COLOR);
1640 }
1641 }
1642 }
1643}
1644
1645void
1646vesa_flush_text(void)

Callers 1

positionbarFunction · 0.85

Calls 2

vesa_GetCharPixelFunction · 0.85
vesa_WritePixelFunction · 0.85

Tested by

no test coverage detected