Module Name: src Committed By: macallan Date: Thu Jan 17 01:10:53 UTC 2013
Modified Files: src/sys/arch/arm/omap: omapfb.c Log Message: don't draw blanks by hand, use the blitter instead To generate a diff of this commit: cvs rdiff -u -r1.12 -r1.13 src/sys/arch/arm/omap/omapfb.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/arch/arm/omap/omapfb.c diff -u src/sys/arch/arm/omap/omapfb.c:1.12 src/sys/arch/arm/omap/omapfb.c:1.13 --- src/sys/arch/arm/omap/omapfb.c:1.12 Wed Jan 16 20:34:10 2013 +++ src/sys/arch/arm/omap/omapfb.c Thu Jan 17 01:10:52 2013 @@ -1,4 +1,4 @@ -/* $NetBSD: omapfb.c,v 1.12 2013/01/16 20:34:10 macallan Exp $ */ +/* $NetBSD: omapfb.c,v 1.13 2013/01/17 01:10:52 macallan Exp $ */ /* * Copyright (c) 2010 Michael Lorenz @@ -31,7 +31,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: omapfb.c,v 1.12 2013/01/16 20:34:10 macallan Exp $"); +__KERNEL_RCSID(0, "$NetBSD: omapfb.c,v 1.13 2013/01/17 01:10:52 macallan Exp $"); #include <sys/param.h> #include <sys/systm.h> @@ -801,6 +801,17 @@ omapfb_putchar(void *cookie, int row, in struct vcons_screen *scr = ri->ri_hw; struct omapfb_softc *sc = scr->scr_cookie; + if (c == 0x20) { + uint32_t fg, bg, ul; + rasops_unpack_attr(attr, &fg, &bg, &ul); + omapfb_rectfill(sc, + ri->ri_xorigin + ri->ri_font->fontwidth * col, + ri->ri_yorigin + ri->ri_font->fontheight * row, + ri->ri_font->fontwidth, + ri->ri_font->fontheight, + ri->ri_devcmap[bg]); + return; + } omapfb_wait_idle(sc); sc->sc_putchar(cookie, row, col, c, attr); }