Paint program help - drawing rectangles, restoring

BlitzMax Forums/BlitzMax Beginners Area/Paint program help - drawing rectangles, restoring

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

I'm guessing you're not using cls.
How about...
1) cls
2) Draw background
3) Draw rect
4) loop to 1)
When the mouse is released for drawing the rectangle then make that part of the background.