resize the window in a slightly less bad way, fix my check in setUseHardwareCursors to be the right way round