(100*(maxval + 1));
(100*maxval);
inline unsigned short Get_color8	(	unsigned char val,	int maxval,	int brightness			// 100=normal.	)	{	uint32 c = (((uint32) val)*brightness*255L)/							(100*(maxval + 1));	return (c <= 255L ? (unsigned short) c : 255);	}