]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[fbcon] Allow ANSI CUP with missing arguments
authorMichael Brown <mcb30@ipxe.org>
Wed, 22 Jan 2014 22:42:59 +0000 (22:42 +0000)
committerMichael Brown <mcb30@ipxe.org>
Wed, 22 Jan 2014 22:43:55 +0000 (22:43 +0000)
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/core/fbcon.c

index 32ae43bee6528507f52477cb5927441cf3538b68..72d6a67894be5fdeb88f817a7ffbd4fc8134d43f 100644 (file)
@@ -294,10 +294,10 @@ static void fbcon_handle_cup ( struct ansiesc_context *ctx,
        fbcon_draw_cursor ( fbcon, 0 );
        fbcon->xpos = cx;
        if ( fbcon->xpos >= fbcon->character.width )
-               fbcon->xpos = ( fbcon->character.width - 1 );
+               fbcon->xpos = 0;
        fbcon->ypos = cy;
        if ( fbcon->ypos >= fbcon->character.height )
-               fbcon->ypos = ( fbcon->character.height - 1 );
+               fbcon->ypos = 0;
        fbcon_draw_cursor ( fbcon, fbcon->show_cursor );
 }