Explorar el Código

[fbcon] Allow ANSI CUP with missing arguments

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown hace 10 años
padre
commit
3ee2c4ac1c
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2
    2
      src/core/fbcon.c

+ 2
- 2
src/core/fbcon.c Ver fichero

@@ -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…
Cancelar
Guardar