3 * Copyright 2001-2007 John Coffman
4 * Copyright 2009-2010 Joachim Wiedorn
7 * Licensed under the terms contained in the file 'COPYING'
8 * in the source directory.
14 typedef unsigned int bm_uint32;
15 typedef signed int bm_sint32;
16 typedef unsigned short bm_uint16;
17 typedef signed short bm_sint16;
18 typedef unsigned char bm_byte;
21 /* Windows/OS2 bitmap header */
22 typedef struct BitMapHeader {
26 bm_uint16 numBitPlanes;
27 bm_uint16 numBitsPerPlane;
28 bm_uint32 compressionScheme;
29 bm_uint32 sizeImageData;
30 bm_uint32 xResolution, yResolution;
31 bm_uint32 numColorsUsed, numImportantColors;
35 /* OS2 bitmap header */
36 typedef struct BitMapHeader2 {
40 bm_uint16 numBitPlanes;
41 bm_uint16 numBitsPerPlane;
46 bm_byte blue, green, red, null;
50 bm_byte blue, green, red;
54 /* common BM file header */
55 typedef struct BitMapFileHeader {
56 bm_uint16 magic; /* must be "BM" */
57 bm_uint16 size[2]; /* actually bm_uint32 */
58 bm_sint16 xHotspot, yHotspot;
59 bm_uint16 offsetToBits[2]; /* actually bm_uint32 */
60 } BITMAPFILEHEADER; /* needed to compensate for GCC's alignment rules */
63 typedef struct Scheme {
67 /* LILO bitmap header text color and placement parameters */
68 typedef struct BitmapLiloHeader {
70 char magic[4]; /* "LILO" */
72 /* items below this point must correspond EXACTLY with the MENUTABLE items
75 ;*/ short row, col, ncol; /* BMP row, col, and ncols
79 ;*/ short maxcol, xpitch; /* BMP max per col, xpitch between cols
82 ;*/ short fg, bg, sh; /* BMP normal text fore, backgr, shadow
86 ;*/ short h_fg, h_bg, h_sh; /* highlight fg, bg, & shadow
90 ;*/ short t_fg, t_bg, t_sh; /* timer fg, bg, & shadow colors
94 ;*/ short t_row, t_col; /* timer position
97 ;*/ short mincol, reserved[3]; /* BMP min per col before spill to next, reserved spacer