Switching back from canvas to GraphicsMode?

BlitzMax Forums/BlitzMax Programming/Switching back from canvas to GraphicsMode?

maverick69(Posted 2007) [#1]
Hey, I'm having an app that is using a DirectX GraphicMode and a Window with a canvas.

Now I use SetGraphics(CanvasGraphics(MyCanvas)) to draw things to my window, but how can I jump back to the DirectX-GraphicMode? Is there a global graphic object I can use with SetGraphics, somethig like SetGraphics(MyGraphicObject)???

I tried to set a handle to it, but the following code doesn't work:

Global MyGraphics:TGraphics = Graphics(640,480,0,60)


tonyg(Posted 2007) [#2]
What happens when it doesn't work?
This seems OK



maverick69(Posted 2007) [#3]
okay, wenn I use the Graphics-Command with brakets it does work. Thanks!