| 173 | } |
| 174 | |
| 175 | void DrawRect(unsigned int x, unsigned int y, unsigned int width, unsigned int height, uint8_t r, uint8_t g, uint8_t b){ |
| 176 | uint32_t colour = r << 16 | g << 8 | b; |
| 177 | |
| 178 | for(unsigned i = 0; i < height; i++){ |
| 179 | for(unsigned j = 0; j < width; j++){ |
| 180 | ((uint32_t*)videoMemory)[((i + y) * screenWidth) + j + x] = colour; |
| 181 | } |
| 182 | } |
| 183 | } |
| 184 | |
| 185 | void DrawChar(char c, unsigned int x, unsigned int y, uint8_t r, uint8_t g, uint8_t b) { |
| 186 | uint32_t colour = r << 16 | g << 8 | b; |
no outgoing calls
no test coverage detected