Table of Contents
MAGscrModeCode - returns screen mode flags saved in MAG file
#include <maglo.h>
unsigned char MAGscrModeCode(MagImage *mag);
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.
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.
MAGscrMode200Lines(3)
, MAGscrModeNumColors(3)
,
MAGscrModeIsDigital(3)
, libmaglo(7)
Table of Contents