3 Copyright 2001-2004 John Coffman.
6 Licensed under the terms contained in the file 'COPYING' in the
15 typedef unsigned int bm_uint32;
16 typedef signed int bm_sint32;
17 typedef unsigned short bm_uint16;
18 typedef signed short bm_sint16;
19 typedef unsigned char bm_byte;
22 /* Windows/OS2 bitmap header */
23 typedef struct BitMapHeader {
27 bm_uint16 numBitPlanes;
28 bm_uint16 numBitsPerPlane;
29 bm_uint32 compressionScheme;
30 bm_uint32 sizeImageData;
31 bm_uint32 xResolution, yResolution;
32 bm_uint32 numColorsUsed, numImportantColors;
36 /* OS2 bitmap header */
37 typedef struct BitMapHeader2 {
41 bm_uint16 numBitPlanes;
42 bm_uint16 numBitsPerPlane;
47 bm_byte blue, green, red, null;
51 bm_byte blue, green, red;
55 /* common BM file header */
56 typedef struct BitMapFileHeader {
57 bm_uint16 magic; /* must be "BM" */
58 bm_uint16 size[2]; /* actually bm_uint32 */
59 bm_sint16 xHotspot, yHotspot;
60 bm_uint16 offsetToBits[2]; /* actually bm_uint32 */
61 } BITMAPFILEHEADER; /* needed to compensate for GCC's alignment rules */
64 typedef struct Scheme {
68 /* LILO bitmap header text color and placement parameters */
69 typedef struct BitmapLiloHeader {
71 char magic[4]; /* "LILO" */
73 /* items below this point must correspond EXACTLY with the MENUTABLE items
76 ;*/ short row, col, ncol; /* BMP row, col, and ncols
80 ;*/ short maxcol, xpitch; /* BMP max per col, xpitch between cols
83 ;*/ short fg, bg, sh; /* BMP normal text fore, backgr, shadow
87 ;*/ short h_fg, h_bg, h_sh; /* highlight fg, bg, & shadow
91 ;*/ short t_fg, t_bg, t_sh; /* timer fg, bg, & shadow colors
95 ;*/ short t_row, t_col; /* timer position
98 ;*/ short mincol, reserved[3]; /* BMP min per col before spill to next, reserved spacer