Mouse Image-flicker/other?

Blitz3D Forums/Blitz3D Beginners Area/Mouse Image-flicker/other?

Gauge(Posted 2004) [#1]
When using an image for a pointer, while using flip every loop, how can I either get the mouse not to flicker, or is there a better way? Can I just replace the pointer image??

sample code:
Graphics3D 800,600,16,3
SetBuffer BackBuffer()
Cls

blank=LoadImage("c:\blitz\blank.bmp")


While Not KeyHit(1)
Cls
DrawImage blank,MouseX(),MouseY()
Flip
Wend

FreeImage blank
End



Jeppe Nielsen(Posted 2004) [#2]
I think it is because you are using a scalable window:
Try changing this:
Graphics3D 800,600,16,3

To:
Graphics3D 800,600,16,2



Hansie(Posted 2004) [#3]
@all

Jeppe is correct. his code is similar to mine, and that works perfectly