fbsplash: use line_length instead of xres * bytes_per_pixel
authorYin Kangkai <kangkai.yin@intel.com>
Thu, 23 Feb 2012 07:56:36 +0000 (15:56 +0800)
committerDenys Vlasenko <vda.linux@googlemail.com>
Wed, 29 Feb 2012 17:07:59 +0000 (18:07 +0100)
commit3ac066c25670ccf6a992c49340287379c9a342bc
tree6b770e7f114091be3883719fd9bc2f10d5dba5dd
parent62c006d508552a6ac547b807eb9ad0a32a76e1c9
fbsplash: use line_length instead of xres * bytes_per_pixel

In some system (e.g. my "strange" device), line_length is not equal xres *
bytes_per_pixel, so we need to use line_length in scr_fix to mmap and draw
rectangle etc.

My "strange" device output this:
bytes_per_pixel: 4
xres: 600, yres: 1024
yoffset: 0, xoffset: 0, line_length: 2432
G.addr: b74da000

Signed-off-by: Yin Kangkai <kangkai.yin@intel.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
miscutils/fbsplash.c