| 1825 | } |
| 1826 | |
| 1827 | static unsigned long |
| 1828 | vesa_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' |
no outgoing calls
no test coverage detected