瀏覽代碼

[fbcon] Allow ANSI CUP with missing arguments

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 11 年之前
父節點
當前提交
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
 

Loading…
取消
儲存