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