Module Name: src
Committed By: macallan
Date: Thu Dec 22 04:53:43 UTC 2011
Modified Files:
src/sys/dev/wsfb: genfb.c
Log Message:
support anti-aliased fonts in 32bit colour
To generate a diff of this commit:
cvs rdiff -u -r1.42 -r1.43 src/sys/dev/wsfb/genfb.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/dev/wsfb/genfb.c
diff -u src/sys/dev/wsfb/genfb.c:1.42 src/sys/dev/wsfb/genfb.c:1.43
--- src/sys/dev/wsfb/genfb.c:1.42 Wed Jul 13 22:47:29 2011
+++ src/sys/dev/wsfb/genfb.c Thu Dec 22 04:53:43 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: genfb.c,v 1.42 2011/07/13 22:47:29 macallan Exp $ */
+/* $NetBSD: genfb.c,v 1.43 2011/12/22 04:53:43 macallan Exp $ */
/*-
* Copyright (c) 2007 Michael Lorenz
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: genfb.c,v 1.42 2011/07/13 22:47:29 macallan Exp $");
+__KERNEL_RCSID(0, "$NetBSD: genfb.c,v 1.43 2011/12/22 04:53:43 macallan Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -505,6 +505,9 @@ genfb_init_screen(void *cookie, struct v
ri->ri_flg |= RI_CLEAR;
}
+ if (ri->ri_depth == 32)
+ ri->ri_flg |= RI_ENABLE_ALPHA;
+
rasops_init(ri, sc->sc_height / 8, sc->sc_width / 8);
ri->ri_caps = WSSCREEN_WSCOLORS;