accel_putcs()

2 messages, 2 authors, 2003-01-15 · open the first message on its own page

accel_putcs()

From: Geert Uytterhoeven <geert@linux-m68k.org>
Date: 2003-01-12 21:01:15

accel_putcs() calls fb_sync() after fb_imageblit(), except if fontwidth is not
a multiple of 8 and it falls back to individual drawing of the characters. This
patch adds the missing call to fb_sync().

It also replaces `vc->vc_font.height * width' by its precalculated value in
`cellsize'.
--- linux-2.5.56/drivers/video/console/fbcon.c	Thu Jan  2 12:54:55 2003
+++ linux-geert-2.5.56/drivers/video/console/fbcon.c	Sun Jan 12 13:20:53 2003
@@ -418,17 +415,17 @@
 			dst0 += width;
 		}
 		info->fbops->fb_imageblit(info, &image);
-		if (info->fbops->fb_sync)
-			info->fbops->fb_sync(info);
 	} else {
 		image.width = vc->vc_font.width;
 		while (count--) {
-			image.data = p->fontdata + 
-				(scr_readw(s++) & charmask) * vc->vc_font.height * width;
+			image.data = p->fontdata +
+				(scr_readw(s++) & charmask) * cellsize;
 			info->fbops->fb_imageblit(info, &image);
 			image.dx += vc->vc_font.width;
-		}	
+		}
 	}
+	if (info->fbops->fb_sync)
+		info->fbops->fb_sync(info);
 	/*
 	if (pixmap);
 		kfree(pixmap);
Gr{oetje,eeting}s,

						Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
							    -- Linus Torvalds



-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com

Re: accel_putcs()

From: James Simmons <hidden>
Date: 2003-01-15 00:31:49

accel_putcs() calls fb_sync() after fb_imageblit(), except if fontwidth is not
a multiple of 8 and it falls back to individual drawing of the characters. This
patch adds the missing call to fb_sync().

It also replaces `vc->vc_font.height * width' by its precalculated value in
`cellsize'.
Applied.



-------------------------------------------------------
This SF.NET email is sponsored by: Take your first step towards giving 
your online business a competitive advantage. Test-drive a Thawte SSL 
certificate - our easy online guide will show you how. Click here to get 
started: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0027en
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help