* Given the character, return the bitmap that displays that character */
| 1024 | * Given the character, return the bitmap that displays that character |
| 1025 | */ |
| 1026 | static void |
| 1027 | vga_GetBitmap(uint32 chr, unsigned char *bitmap) |
| 1028 | { |
| 1029 | unsigned i; |
| 1030 | |
| 1031 | if (psf_font) { |
| 1032 | unsigned char const *fp = get_font_glyph(psf_font, chr, |
| 1033 | SYMHANDLING(H_UTF8)); |
| 1034 | for (i = 0; i < ROWS_PER_CELL; ++i) { |
| 1035 | bitmap[i] = fp[i]; |
| 1036 | } |
| 1037 | } else { |
| 1038 | unsigned char const __far *fp = rom_font + chr * ROWS_PER_CELL; |
| 1039 | for (i = 0; i < ROWS_PER_CELL; ++i) { |
| 1040 | bitmap[i] = READ_ABSOLUTE((fp + i)); |
| 1041 | } |
| 1042 | } |
| 1043 | } |
| 1044 | |
| 1045 | /* |
| 1046 | * This is the routine that displays a high-res "cell" pointed to by 'gp' |
no test coverage detected