bIsFrameNew should be false if no new frame
new main signature
defer call to setup() until we know the size of the window