Fullscreen ALT+TAB FLIP being ignored.

Archives Forums/BlitzMax Bug Reports/Fullscreen ALT+TAB FLIP being ignored.

Stu_ovine(Posted 2009) [#1]
I've not noticed this on previous versions but try this.

Run the code below whihc should draw a rectangle slowly. ALT+TAB away for a second then come back to it. The rectangle is fully drawn.

Its totally ignoring the FLIP command ?







Graphics(800,600,32)

Local a:Float = 1

While Not KeyHit(KEY_ESCAPE)

	Cls
	SetColor 255,0,0
	DrawRect 0,0,a,a
	a:+0.05

	Flip 1    '  -1 also breaks
Wend




/Stu


TaskMaster(Posted 2009) [#2]
If the window is not visible, there is no reason to flip it. Makes sense.


SLotman(Posted 2009) [#3]
Thing is: your code doesn't account for render time, so the screen isn't visible, and it's being rendered at top speed.

Try this and see that it won't "jump" to fullscreen rect after an alt+tab:

Graphics(800,600,32)

Local a:Float = 1
Local time:Float=0

While Not KeyHit(KEY_ESCAPE)

	time=MilliSecs()
	Cls
	SetColor 255,0,0
	DrawRect 0,0,a,a
	Flip 1    '  -1 also breaks

	time = (MilliSecs()-Time) / 10.0
	a:+(0.05 * time)

Wend