]> git.karo-electronics.de Git - karo-tx-uboot.git/commitdiff
cfb_console: Fix function console_back
authorPali Rohár <pali.rohar@gmail.com>
Sat, 28 Apr 2012 07:26:43 +0000 (07:26 +0000)
committerAnatolij Gustschin <agust@denx.de>
Mon, 4 Jun 2012 20:42:02 +0000 (22:42 +0200)
* Do not disable and enable the cursor again.

console_back() is called only from video_putc() which already turns
the cursor off at the beginning and turns it on at the end, so there
is no need to change the cursor in console_back().

Signed-off-by: Pali Rohár <pali.rohar@gmail.com>
Signed-off-by: Anatolij Gustschin <agust@denx.de>
drivers/video/cfb_console.c

index 904caf768917fe8137f27b5583ab5eb4e3b8a355..51ea1671cf6b4a2eea31404ec4d034dfb857444e 100644 (file)
@@ -721,7 +721,6 @@ static void console_scrollup(void)
 
 static void console_back(void)
 {
-       CURSOR_OFF;
        console_col--;
 
        if (console_col < 0) {
@@ -730,7 +729,6 @@ static void console_back(void)
                if (console_row < 0)
                        console_row = 0;
        }
-       CURSOR_SET;
 }
 
 static void console_newline(void)