lkml.org 
[lkml]   [1996]   [Sep]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectVGA blanker patch
Hi guys.

The attached short patch changes the screen blanker for VGA-alike consoles
slightly. This makes hiding the cursor work on my Hercules mono card;
previously it just moved the cursor to the top left corner and left it
there, which was irritating. It doesn't seem to do any harm on my SVGA
card either, but other people should probably check it out. Assuming no
cards are broken by this, I think it would be a good idea to incorporate
it into the standard kernel.

phil
--
--- clean-linux/linux/drivers/char/vga.c Tue May 14 00:05:44 1996
+++ linux/drivers/char/vga.c Wed Sep 25 18:25:11 1996
@@ -111,9 +111,9 @@
but perhaps the delays due to the inefficiency are useful for
some hardware... */
outb_p(14, video_port_reg);
- outb_p(0xff&((video_mem_term-video_mem_base)>>9), video_port_val);
+ outb_p(0xff&((video_mem_term-video_mem_base-1)>>9), video_port_val);
outb_p(15, video_port_reg);
- outb_p(0xff&((video_mem_term-video_mem_base)>>1), video_port_val);
+ outb_p(0xff&((video_mem_term-video_mem_base-1)>>1), video_port_val);
}

void


\
 
 \ /
  Last update: 2005-03-22 13:37    [W:0.028 / U:0.128 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site