Range check screenwidth/screenheight and...

windowwidth/windowheight. Game can no longer be displayed in dimensions
less than 640x400, in either fullscreen or a window.