Enhanced SetClsColor

BlitzMax Forums/BlitzMax Programming/Enhanced SetClsColor

Hi Jake, I must be doing something wrong as I get
Bitwise Operator can only be used with integers
.
I did have to add an End Function and brackets.
I changed to
		If TD3D7Max2DDriver(_max2dDriver)
			TD3D7Max2DDriver(_max2dDriver).clscolor=Int((alpha And 255) Shl 24) |(red Shl 16)|(green Shl 8)|blue
		Else
			glClearColor red/255.0,green/255.0,blue/255.0,alpha
		EndIf


which seems to work.