Correctly set screen width and height when not too small.