diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2013-09-19 01:53:56 +0200 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2013-09-19 01:53:56 +0200 |
commit | 0adc5f281842de582609133a5cb16817e40cfe4e (patch) | |
tree | a3d52be592e298fc3ba414c575999282dead6c46 /console-client | |
parent | 84cf9c0f312637b670cc87224ff7e7c4da659e36 (diff) |
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.
Diffstat (limited to 'console-client')
-rw-r--r-- | console-client/vga-dynafont.c | 4 |
1 files 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); } } |