crash-free/flicker-free resizing, but need to clean up bool in context.cpp
total and complete fix for resizing/fullscreening (whilst drawing!)
refactoring