frecon: fix VT2 lost a few lines when lid close/open under VT2

Reuse the buffer_properties if it was set before. Otherwise,
during lid close/open, frecon will run into headless mode, and
the default value will be passed to term_resize, that will
cause the screen data be resized and lost a few lines.

BUG=chrome-os-partner:55360
BRANCH=TOT
TEST=VT2 display normally under lid close/open test.

Change-Id: Iba0832596f8b7825e62d031df8ee404ddc2e7f75
Signed-off-by: zhuo-hao <zhuo-hao.lee@intel.com>
Reviewed-on: https://chromium-review.googlesource.com/365360
Commit-Ready: Dominik Behr <dbehr@chromium.org>
Tested-by: Dominik Behr <dbehr@chromium.org>
Reviewed-by: Dominik Behr <dbehr@chromium.org>
(cherry picked from commit 8f99f4378aacc6ad7da94d0519d5d2f99f71f021)
Reviewed-on: https://chromium-review.googlesource.com/374239
Reviewed-by: YH Lin <yueherngl@chromium.org>
Reviewed-by: Mohammed Habibulla <moch@google.com>
Commit-Queue: Xin-Yao Shih <Stone_XY_Shih@wistron.com>
Tested-by: Xin-Yao Shih <Stone_XY_Shih@wistron.com>
1 file changed