TempleOSCD_150720.ISO

This commit is contained in:
Terry A. Davis authored and minexew committed 2018-09-08 21:46:22 +02:00
1 parent 401601816c
commit f8c05f98f4
554 files changed
+26046 -24853

No files matched your search

+13
View File
@@ -1,6 +1,7 @@
$WW,1$GRA graphics files are 8-bits-per-pixels but only 4-bits of color, with transparency and no palette. Compression is the standard TempleOS$FG$ LZW compression.
$HL,1$
#define DCF_COMPRESSED 1 //This is the only saved flag.
#define DCF_PALETTE 2
#define TRANSPARENT 0xFF
#define BLACK 0
@@ -20,12 +21,24 @@ $HL,1$
#define YELLOW 14
#define WHITE 15
class CBGR48
{
U16 r,g,b,pad;
};
CBGR48 gr_palette_std[16]={
0x000000000000,0x00000000AAAA,0x0000AAAA0000,0x0000AAAAAAAA,
0xAAAA00000000,0xAAAA0000AAAA,0xAAAA55550000,0xAAAAAAAAAAAA,
0x555555555555,0x55555555FFFF,0x5555FFFF5555,0x5555FFFFFFFF,
0xFFFF55555555,0xFFFF5555FFFF,0xFFFFFFFF5555,0xFFFFFFFFFFFF};
class GRAFile
{
I32 width;
I32 width_internal; //Rounded-up to multiple of 8.
I32 height;
I32 flags; //DCF_COMPRESSED? See $LK,"::/Kernel/Compress.CPP"$.
CBGR48 palette[16]; //Included if DCF_PALETTE.
U8 body[];
};$HL,0$