* Write character 'ch', at (x,y) and * do it using the colour 'colour'. * */
| 1580 | * |
| 1581 | */ |
| 1582 | static void |
| 1583 | vesa_WriteChar(uint32 chr, int col, int row, uint32 colour) |
| 1584 | { |
| 1585 | int pixx, pixy; |
| 1586 | |
| 1587 | /* min() protects from callers */ |
| 1588 | pixx = min(col, (CO - 1)) * vesa_char_width; |
| 1589 | pixy = min(row, (LI - 1)) * vesa_char_height; |
| 1590 | |
| 1591 | pixx += vesa_x_center; |
| 1592 | pixy += vesa_y_center; |
| 1593 | |
| 1594 | vesa_WriteCharXY(chr, pixx, pixy, colour); |
| 1595 | } |
| 1596 | |
| 1597 | /* |
| 1598 | * As vesa_WriteChar, but specify coordinates by pixel and allow |
no test coverage detected