1 /* $Header: /home/yav/catty/fkiss/RCS/kiss.h,v 1.4 2000/08/24 02:22:46 yav Exp $
2  * KISS generic definition
3  * written by yav <yav@bigfoot.com>
4  *
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation; either version 2 of the License, or
8  * (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program; if not, write to the Free Software
17  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18  */
19 
20 #ifndef _KISS_H
21 #define _KISS_H
22 
23 #define MAXSET 10
24 #define MAXPAL 10
25 
26 #define KISSGS1_MAXCEL	128
27 #define KISSGS2_MAXCEL	256
28 #define KISSGS3_MAXCEL	256
29 #define KISSGS4_MAXCEL	512
30 
31 #define KISSGS1_MAXCOL	16
32 #define KISSGS2_MAXCOL	256
33 #define KISSGS3_MAXCOL	256
34 #define KISSGS4_MAXCOL	256
35 
36 #define FIXED_OBJECT 32767
37 
38 #define KISS_MAGIC_NUMBER	{0x4b,0x69,0x53,0x53,0} /* "KiSS" */
39 
40 /* Cel file header */
41 #define CEL_MARK	4	/* Cel file mark (1byte 0x20) */
42 #define CEL_BPP		5	/* bits ber pixel (1byte) */
43 #define CEL_WIDTH	8	/* Width (2byte) */
44 #define CEL_HEIGHT	10	/* Height (2byte) */
45 #define CEL_XOFS	12	/* x-offset (2byte) */
46 #define CEL_YOFS	14	/* y-offset (2byte) */
47 #define CEL_HEADER_SIZE	32	/* Cel file header size */
48 
49 #define CEL_OLD_WIDTH	0	/* Width (2byte) */
50 #define CEL_OLD_HEIGHT	2	/* Height (2byte) */
51 
52 /* Palette file header */
53 #define PAL_MARK	4	/* Palette file mark (1byte 0x10) */
54 #define PAL_BPC		5	/* bits per color (1byte) */
55 #define PAL_CPPG	8	/* colors per palette group (2byte) */
56 #define PAL_PG		10	/* number of palette group (2byte) */
57 #define PAL_HEADER_SIZE	32
58 
59 /* default screen size for KISS v2.18 compatibility */
60 #define KISS_WIDTH_DEFAULT	448
61 #define KISS_HEIGHT_DEFAULT	320
62 
63 #endif /* _KISS_H */
64 
65 /* End of file */
66