| 239 | } |
| 240 | |
| 241 | void |
| 242 | vga_clear_screen(int colour) |
| 243 | { |
| 244 | unsigned long __far *pch; |
| 245 | unsigned j; |
| 246 | |
| 247 | egawriteplane(colour); |
| 248 | pch = (unsigned long __far *) screentable[0]; |
| 249 | for (j = 0; j < SCREENHEIGHT * SCREENBYTES / 4; ++j) { |
| 250 | WRITE_ABSOLUTE_DWORD(&pch[j], 0xFFFFFFFF); |
| 251 | } |
| 252 | egawriteplane(~colour); |
| 253 | pch = (unsigned long __far *) screentable[0]; |
| 254 | for (j = 0; j < SCREENHEIGHT * SCREENBYTES / 4; ++j) { |
| 255 | WRITE_ABSOLUTE_DWORD(&pch[j], 0x00000000); |
| 256 | } |
| 257 | egawriteplane(15); |
| 258 | if (iflags.tile_view) |
| 259 | vga_clearmap(); |
| 260 | vga_gotoloc(0, 0); /* is this needed? */ |
| 261 | } |
| 262 | |
| 263 | /* clear to end of line */ |
| 264 | void vga_cl_end(int col, int row) |
no test coverage detected