commit | 3ac066c25670ccf6a992c49340287379c9a342bc | [log] [tgz] |
---|---|---|
author | Yin Kangkai <kangkai.yin@intel.com> | Thu Feb 23 15:56:36 2012 +0800 |
committer | Denys Vlasenko <vda.linux@googlemail.com> | Wed Feb 29 18:07:59 2012 +0100 |
tree | 6b770e7f114091be3883719fd9bc2f10d5dba5dd | |
parent | 62c006d508552a6ac547b807eb9ad0a32a76e1c9 [diff] |
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>