From 0adc5f281842de582609133a5cb16817e40cfe4e Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Thu, 19 Sep 2013 01:53:56 +0200 Subject: Fix cursor size The VGA card might have a bogus cursor end value, so better always write a value in there. * console-client/vga-dynafont.c (dynafont_set_cursor): Always pass height - 1 as end parameter for vga_set_cursor_size. --- console-client/vga-dynafont.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/console-client/vga-dynafont.c b/console-client/vga-dynafont.c index 834d0aca..6745e88a 100644 --- a/console-client/vga-dynafont.c +++ b/console-client/vga-dynafont.c @@ -964,9 +964,9 @@ dynafont_set_cursor (dynafont_t df, int standout) if (df == active_dynafont) { if (standout) - vga_set_cursor_size (1, -1); + vga_set_cursor_size (1, height - 1); else - vga_set_cursor_size ((height >= 2) ? height - 2 : 0, -1); + vga_set_cursor_size ((height >= 2) ? height - 2 : 0, height - 1); } } -- cgit v1.2.3