lkml.org 
[lkml]   [2001]   [Nov]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subjectsmall bug? in drivers/video/vgacon.c
Hi.

Function drivers/video/vgacon.c:vgacon_scrolldelta() doesn't work
when get 1 or -1 as 2nd arg (it doesn't scroll).
This bug can be seen rarely, cos usually this func never called with 1 or -1.
I don't quite understand, how this func works :-) but vgacon_scrolldelta
works properly with this small patch.

diff -ur linux-2.4.12-orig/drivers/video/vgacon.c linux-2.4.12/drivers/video/vgacon.c
--- linux-2.4.12-orig/drivers/video/vgacon.c Fri Sep 14 03:04:43 2001
+++ linux-2.4.12/drivers/video/vgacon.c Sat Oct 20 19:29:20 2001
@@ -931,7 +931,7 @@
c->vc_visible_origin = c->vc_origin;
else {
int vram_size = vga_vram_end - vga_vram_base;
- int margin = c->vc_size_row * 4;
+ int margin = c->vc_size_row;
int ul, we, p, st;

if (vga_rolled_over > (c->vc_scr_end - vga_vram_base) + margin) {
--
mailto:yozh@mx1.ru
ICQ:26521795

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

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