The mystery of the disappearing pink rectangle

Blitz3D Forums/Blitz3D Beginners Area/The mystery of the disappearing pink rectangle

Abomination(Posted 2011) [#1]
Graphics 800,600,16,0
SetBuffer BackBuffer()

image=CreateImage(20,20)
MaskImage image,255,0,255
Color 255,0,255
Repeat
SetBuffer BackBuffer()
If KeyDown(57) Then DrawImage image,100,100
;Text 10,10,"Q"
Rect 10,10,30,30,1

VWait
Flip False
Until KeyDown(1)
End
------------------------------------------------
Try holding down space...

MAskimage affects rect?
It took me 4 hours to find out this was causing some of my rectangles
to disappear, while others didn't.
If I use a text-command before rect It shows up again.
Is this a known issue?
And more important; is there a way to prevent this, without having to
put some text somewhere each time before I draw a rectangle?
(or am I just plain stupid?)


jfk EO-11110(Posted 2011) [#2]
On this notebook with onboard gfx it works ok.

Last edited 2011