display: adjust correctly the  width/height value of screen when plugging out monitors

Change-Id: I9686bba2712f3c51b6cfca9ace8426b9d0618780