]> git.dujemihanovic.xyz Git - u-boot.git/commit
video: cfb_console: fix definition and usage of CURSOR_xxx macros
authorTimur Tabi <timur@freescale.com>
Fri, 27 Aug 2010 20:45:47 +0000 (15:45 -0500)
committerAnatolij Gustschin <agust@denx.de>
Tue, 21 Sep 2010 20:27:43 +0000 (22:27 +0200)
commitc88777e09f77e0b925b001b1a1610b8441b826d8
tree9cba64584a5b520e8074c722f662d27387f2fd84
parent800eb09641ae67c707b65acff112684a954b7f44
video: cfb_console: fix definition and usage of CURSOR_xxx macros

The CURSOR_ON, CURSOR_OFF, and CURSOR_SET macros are defined incorrectly.  If
cursor support is disabled, then these macros are defined to nothing, but
then they are used like this:

if (console_col < CONSOLE_COLS)
CURSOR_OFF
console_row++;

which was compiled like this:

if (console_col < CONSOLE_COLS)
console_row++;

This is obviously not what was intended.

Signed-off-by: Timur Tabi <timur@freescale.com>
Acked-by: Detlev Zundel <dzu@denx.de>
drivers/video/cfb_console.c