DRAWING

Build a GWorld according to available memory

I had a problem whereby I wanted to create the largest possible gWorld to hold an offscreen map of something like 4000 x 4000 pixels. I eventually ended up by allocating the program something like 30Megs to run in. Once I had done this, I was able to check the free memory available within my partition at runtime, and then set the gWorld to match after I'd checked the colour depth in use.