Multiple canvas = bug?

BlitzMax Forums/BlitzMax Programming/Multiple canvas = bug?

Robert Cummings(Posted 2006) [#1]
Hi,

When I have 2 canvases, I use setcanvas approporitely but using CLS on one canvas causes the other canvas to corrupt and partially clear.

Are multiple canvas not supported then?


CS_TBL(Posted 2006) [#2]
source? I use multiple canvases all the way, no probs..


Robert Cummings(Posted 2006) [#3]
Firstly, do I need a flip for both canvases?


Beaker(Posted 2006) [#4]
You have to treat Cls..Flip as bracketing your drawing code. So thats a Cls and Flip for each canvas.


Robert Cummings(Posted 2006) [#5]
Thanks beaks, tried this, and the new canvas cuts off the top of the old canvas by approximately the size of the new canvas. Will try reproducing in a small program.


Ziltch(Posted 2006) [#6]
Is this Gl or DX!

As DX does not handle 2 canvas's well.


Robert Cummings(Posted 2006) [#7]
It is DX!

I also have a problem enabling any other graphics contexts from maxgui under DX.


Robert Cummings(Posted 2006) [#8]
Found the bug. It's in the bug forum with example code.