map_clear_after()

Purpose

Clears all the maps displayed after a given map

Old name

#define clearbelow map_clear_after

Syntax

void map_clear_after(mapnr)

Parameters

int mapnr

Number of map after which subsequent maps are cleared

Description

This removes all maps displayed after the specified map from the screen, but not the map itself. This is often used when some printing has been done and some display from maps remains on the screen.

See also

map_clear_from()

Example

/* typical printing example */
map_draw(1,RETAIN);
if (!ask_outdevice(PRINTER,0,"",) != ESCAPE)
{
/* do some printing*/
prn_print(FALSE);
}
map_clear_after(1);
/* remove remains of printing from screen */