david/ipxe
Archived
1
0

[fbcon] Allow ANSI CUP with missing arguments

Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Michael Brown 2014-01-22 22:42:59 +00:00
parent 20a90a40c3
commit 3ee2c4ac1c

View 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 );
}