SetColor not working on Win98

BlitzMax Forums/BlitzMax Programming/SetColor not working on Win98

TartanTangerine (was Indiepath)(Posted 2005) [#1]
Neither is BlendMode(LIGHTBLEND), Is this a driver or OS issue? It's not the card as it works fine under XP.


Yan(Posted 2005) [#2]
Is this in GL and DX?


TartanTangerine (was Indiepath)(Posted 2005) [#3]
both

Let me show two examples of ALPHABLEND, one works and the other does not.

Not Working, image does not fade in.
Graphics 640,480,0
ima:Timage = LoadImage("bg4.jpg")
Local a:Float
Local b:Float
For a = 0 To 1000
	Cls
	b = a / 1000
	SetBlend(ALPHABLEND)
	SetAlpha(b)
	DrawImage ima,0,0
	Flip
	FlushMem()
Next


This works and shows the image at Alpha 0.5
Graphics 640,480,0

ima:Timage = LoadImage("bg4.jpg")
SetBlend(ALPHABLEND)
SetAlpha(0.5)
DrawImage ima,0,0
Flip



Dreamora(Posted 2005) [#4]
Try in fullscreen ... perhaps Win98 does not support windowed alpha? (or the Win98 driver does not, no idea)


TartanTangerine (was Indiepath)(Posted 2005) [#5]
The issue is that one bit of code does the alpha properly and the other does not.

I have actually fixed it now. I have to reset the SetBlend with SetBlend(SOLIDBLEND) and the set it back to ALPHABLEND for it to work. What a Nightmare!


Robert Cummings(Posted 2005) [#6]
I have actually fixed it now. I have to reset the SetBlend with SetBlend(SOLIDBLEND) and the set it back to ALPHABLEND for it to work. What a Nightmare!
report it as a bug as this sounds iffy.


TartanTangerine (was Indiepath)(Posted 2005) [#7]
Have done.