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

Function vesa_TriplePixels

sys/msdos/vidvesa.c:1827–1845  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1825}
1826
1827static unsigned long
1828vesa_TriplePixels(unsigned long fnt)
1829{
1830 static const unsigned short triple_bits[] = {
1831 00000, 00007, 00070, 00077,
1832 00700, 00707, 00770, 00777,
1833 07000, 07007, 07070, 07077,
1834 07700, 07707, 07770, 07777
1835 };
1836 unsigned i;
1837 unsigned long fnt2;
1838
1839 fnt2 = 0;
1840 for (i = 0; i < 11; i += 4) {
1841 unsigned long b4 = (fnt >> i) & 0xF;
1842 fnt2 |= (unsigned long)triple_bits[b4] << (i * 3);
1843 }
1844 return fnt2;
1845}
1846
1847/*
1848 * This is the routine that displays a high-res "cell" pointed to by 'gp'

Callers 1

vesa_GetCharPixelRowFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected