Detecting useable screen bounds and resolution