[skin] fix some screen detection code.