Canvas empty after full-screen

BlitzPlus Forums/BlitzPlus Programming/Canvas empty after full-screen

Seldon(Posted 2004) [#1]
I have a window with a canvas and an image drawn on it. I noticed that when I go full-screen (with Graphics command), when I go back (EndGraphics) the canvas of the window is empty. Maybe have I to store the image in system memory ? Or is it normal that the image is lost ? Thank you.


Kanati(Posted 2004) [#2]
Sounds normal. Windows aren't automatically redrawn. You need to keep drawing to the canvas or capture a repaint event (I think it's repaint) and redraw when that happens. I'm too used to VB where it's all done for me. :) Maybe someone can tell you the exact procedure, but I think that's the general idea.


Seldon(Posted 2004) [#3]
Thank you. Yes, I just wanted to know if that was correct, I know Windows doesn't redraw visual objects (like for example AmigaOS does), but Blitz adds some facilities.. like automatic resizing of gadgets, so I thought maybe it could do that redraw.