commit-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[hurd] 01/36: Fix cursor size


From: Samuel Thibault
Subject: [hurd] 01/36: Fix cursor size
Date: Tue, 24 Sep 2013 12:31:12 +0000

This is an automated email from the git hooks/post-receive script.

sthibault pushed a commit to branch upstream
in repository hurd.

commit 0adc5f281842de582609133a5cb16817e40cfe4e
Author: Samuel Thibault <address@hidden>
Date:   Thu Sep 19 01:53:56 2013 +0200

    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 834d0ac..6745e88 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);
     }
 }
 

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/pkg-hurd/hurd.git



reply via email to

[Prev in Thread] Current Thread [Next in Thread]