Tweaked screen size detection.