video: Support multiple lines version string display
authorPeng Fan <peng.fan@nxp.com>
Tue, 2 Jan 2018 07:25:37 +0000 (15:25 +0800)
committerAnatolij Gustschin <agust@denx.de>
Wed, 3 Jan 2018 10:53:48 +0000 (11:53 +0100)
commitf9d891f0a903820100b42f25ba47593519b6b516
tree48aae6c417cbc13bb95cf01debb3588195ab8007
parentcca3ff054ab3e1f5f0d3f2d58da263cae201db50
video: Support multiple lines version string display

The calculation of left space for version string is not correct, should
use VIDEO_COLS not VIDEO_LINE_LEN / 2, otherwise we will get larger space
than actual have and cause string to overlay logo picture.

Also current version string display only supports two lines words at max.
This also causes overlay when the LCD pixel column size is not enough.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
Tested-by: Anatolij Gustschin <agust@denx.de>
drivers/video/cfb_console.c