Просмотр исходного кода

[fbcon] Allow ANSI CUP with missing arguments

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 10 лет назад
Родитель
Сommit
3ee2c4ac1c
1 измененных файлов: 2 добавлений и 2 удалений
  1. 2
    2
      src/core/fbcon.c

+ 2
- 2
src/core/fbcon.c Просмотреть файл

@@ -294,10 +294,10 @@ static void fbcon_handle_cup ( struct ansiesc_context *ctx,
294 294
 	fbcon_draw_cursor ( fbcon, 0 );
295 295
 	fbcon->xpos = cx;
296 296
 	if ( fbcon->xpos >= fbcon->character.width )
297
-		fbcon->xpos = ( fbcon->character.width - 1 );
297
+		fbcon->xpos = 0;
298 298
 	fbcon->ypos = cy;
299 299
 	if ( fbcon->ypos >= fbcon->character.height )
300
-		fbcon->ypos = ( fbcon->character.height - 1 );
300
+		fbcon->ypos = 0;
301 301
 	fbcon_draw_cursor ( fbcon, fbcon->show_cursor );
302 302
 }
303 303
 

Загрузка…
Отмена
Сохранить