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

Function vesa_WritePixel

sys/msdos/vidvesa.c:452–460  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

450}
451
452static void
453vesa_WritePixel(unsigned x, unsigned y, unsigned color)
454{
455 if (vesa_pixel_size == 8) {
456 vesa_WritePixel32(x, y, color);
457 } else {
458 vesa_WritePixel32(x, y, vesa_palette[color & 0xFF]);
459 }
460}
461
462static void
463vesa_WritePixelRow(unsigned long offset,

Callers 2

vesa_DrawCursorFunction · 0.85

Calls 1

vesa_WritePixel32Function · 0.85

Tested by

no test coverage detected