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

Function vesa_Finish

sys/msdos/vidvesa.c:1297–1312  ·  view source on GitHub ↗

* This allows grouping of several tasks to be done when * switching back to text mode. This is a public (extern) function. * */

Source from the content-addressed store, hash-verified

1295 *
1296 */
1297void
1298vesa_Finish(void)
1299{
1300 int i;
1301
1302 for (i = 0; i < total_tiles_used; ++i) {
1303 free(vesa_tiles[i]);
1304 free(vesa_oview_tiles[i]);
1305 }
1306 free(vesa_tiles);
1307 free(vesa_oview_tiles);
1308 vesa_SwitchMode(MODETEXT);
1309 windowprocs.win_cliparound = tty_cliparound;
1310 g_attribute = attrib_text_normal;
1311 iflags.tile_view = FALSE;
1312}
1313
1314/*
1315 *

Callers 1

gr_finishFunction · 0.85

Calls 1

vesa_SwitchModeFunction · 0.85

Tested by

no test coverage detected