MCPcopy Create free account
hub / github.com/NetHack/NetHack / vga_clear_screen

Function vga_clear_screen

sys/msdos/vidvga.c:241–261  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

239}
240
241void
242vga_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 */
264void vga_cl_end(int col, int row)

Callers 2

vga_term_end_screenFunction · 0.85
term_clear_screenFunction · 0.85

Calls 1

vga_gotolocFunction · 0.85

Tested by

no test coverage detected