src/smallmap_gui.cpp
changeset 7313 a36dc43afcb5
parent 7266 b16e67e992b4
child 7341 02515d0d4ced
equal deleted inserted replaced
7312:9e89be4bc9a2 7313:a36dc43afcb5
   191 	blitter->SetPixelIfEmpty(d, 3, 0, val8[3]);
   191 	blitter->SetPixelIfEmpty(d, 3, 0, val8[3]);
   192 }
   192 }
   193 
   193 
   194 #define MKCOLOR(x) TO_LE32X(x)
   194 #define MKCOLOR(x) TO_LE32X(x)
   195 
   195 
   196 /* Height encodings; 16 levels XXX - needs updating for more/finer heights! */
   196 /**
   197 static const uint32 _map_height_bits[16] = {
   197  * Height encodings; MAX_TILE_HEIGHT + 1 levels, from 0 to MAX_TILE_HEIGHT
       
   198  */
       
   199 static const uint32 _map_height_bits[] = {
   198 	MKCOLOR(0x5A5A5A5A),
   200 	MKCOLOR(0x5A5A5A5A),
   199 	MKCOLOR(0x5A5B5A5B),
   201 	MKCOLOR(0x5A5B5A5B),
   200 	MKCOLOR(0x5B5B5B5B),
   202 	MKCOLOR(0x5B5B5B5B),
   201 	MKCOLOR(0x5B5C5B5C),
   203 	MKCOLOR(0x5B5C5B5C),
   202 	MKCOLOR(0x5C5C5C5C),
   204 	MKCOLOR(0x5C5C5C5C),
   210 	MKCOLOR(0x1F1F1F1F),
   212 	MKCOLOR(0x1F1F1F1F),
   211 	MKCOLOR(0x1F271F27),
   213 	MKCOLOR(0x1F271F27),
   212 	MKCOLOR(0x27272727),
   214 	MKCOLOR(0x27272727),
   213 	MKCOLOR(0x27272727),
   215 	MKCOLOR(0x27272727),
   214 };
   216 };
       
   217 assert_compile(lengthof(_map_height_bits) == MAX_TILE_HEIGHT + 1);
   215 
   218 
   216 struct AndOr {
   219 struct AndOr {
   217 	uint32 mor;
   220 	uint32 mor;
   218 	uint32 mand;
   221 	uint32 mand;
   219 };
   222 };