]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
cfbconsole: Add support for stride != width
authorHans de Goede <hdegoede@redhat.com>
Tue, 4 Aug 2015 10:15:39 +0000 (12:15 +0200)
committerLothar Waßmann <LW@KARO-electronics.de>
Thu, 10 Sep 2015 08:23:18 +0000 (10:23 +0200)
commit04ac0dc5b12cfe43c6ebd7f2c907d482e82fc61f
tree35d92600fd51f7f0525d775b34802038dcf35a92
parent9caa5f7fe1319884cd2e141d828c3af503d18f88
cfbconsole: Add support for stride != width

cfbconsole currently assumes that the width and stride of the framebuffer
are the same, in most places where stride matters it uses a VIDEO_LINE_LEN
helper macro.

This commit changes the few places not using VIDEO_LINE_LEN to also use
VIDEO_LINE_LEN, and protects the default VIDEO_LINE_LEN with a #ifndef
guard, allowing the boards config.h to override and, and thus support
cases where stride != width.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Anatolij Gustschin <agust@denx.de>
drivers/video/cfb_console.c