_pg_resetpalette

Description

Resets palette colors, line styles, and patterns to default values.

#include <pgchart.h>

short __far _pg_resetpalette( void );

Remarks

The _pg_resetpalette function sets the palette colors, line styles, fill patterns, and plot characters for the palette to the default for the current screen mode.

The palette used by the presentation-graphics routines is independent of the palette used by the low-level graphics routines.

Return Value

The _pg_resetpalette function returns 0 if there were no errors. If the screen mode is not valid, the value _BADSCREENMODE is returned.

Compatibility

Standards:None

16-Bit:DOS

32-Bit:None

See Also

_pg_defaultchart, _pg_getpalette, _pg_initchart, _pg_setpalette

Example

See the example for _pg_getpalette.