SetGraphics problem

BlitzMax Forums/BlitzMax Programming/SetGraphics problem

Hi there,

I am using SetGraphics CanvasGraphics(canvas) to direct bmax drawing to a canvas in a window. However my editor has a full-screen mode for testing too.

I perform the following when I want to do this:

Local g:TGraphics = Graphics(app.gameWidth , app.gameHeight , 32 , 0)
SetGraphics g

However I am greeted with a black full-screen. Why is this? I had thought I could use SetGraphics to direct the drawing output?