mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* small bug? in drivers/video/vgacon.c
@ 2001-11-01  9:38 Stepan Koltsov
  0 siblings, 0 replies; only message in thread
From: Stepan Koltsov @ 2001-11-01  9:38 UTC (permalink / raw)
  To: linux-kernel

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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2001-11-01  9:39 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-11-01  9:38 small bug? in drivers/video/vgacon.c Stepan Koltsov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®