Browse Source

[fbcon] Allow ANSI CUP with missing arguments

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 11 years ago
parent
commit
3ee2c4ac1c
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      src/core/fbcon.c

+ 2
- 2
src/core/fbcon.c View File

294
 	fbcon_draw_cursor ( fbcon, 0 );
294
 	fbcon_draw_cursor ( fbcon, 0 );
295
 	fbcon->xpos = cx;
295
 	fbcon->xpos = cx;
296
 	if ( fbcon->xpos >= fbcon->character.width )
296
 	if ( fbcon->xpos >= fbcon->character.width )
297
-		fbcon->xpos = ( fbcon->character.width - 1 );
297
+		fbcon->xpos = 0;
298
 	fbcon->ypos = cy;
298
 	fbcon->ypos = cy;
299
 	if ( fbcon->ypos >= fbcon->character.height )
299
 	if ( fbcon->ypos >= fbcon->character.height )
300
-		fbcon->ypos = ( fbcon->character.height - 1 );
300
+		fbcon->ypos = 0;
301
 	fbcon_draw_cursor ( fbcon, fbcon->show_cursor );
301
 	fbcon_draw_cursor ( fbcon, fbcon->show_cursor );
302
 }
302
 }
303
 
303
 

Loading…
Cancel
Save