Table of Contents

Name

MAGscrModeCode - returns screen mode flags saved in MAG file

Synopsis


#include <maglo.h>
unsigned char MAGscrModeCode(MagImage *mag);

Description

The MAGscrModeCode() function returns screen mode flags saved in the MAG file that mag is associated to.

For convenience, use MAGscrMode200Lines(), MAGscrModeNumColors(), MAGscrModeIsDigital instead of calling this function directly.

Return Values

The representation of each bit fields are:

Bit 7
If this bit is set, the image is in 256 colors.
Bit 6-3
unused
Bit 2
If this is set, the image is in digital mode(Only 1 bit for each R/G/B.) The actual color is still saved in the palette.
Bit 1
If this flag is set, the image is in 8 colors.
Bit 0
If this flag is set, the image is saved in 200-line mode.

See Also

MAGscrMode200Lines(3) , MAGscrModeNumColors(3) , MAGscrModeIsDigital(3) , libmaglo(7)


Table of Contents