Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/wsfb support anti-aliased fonts in 32bit colour
details: https://anonhg.NetBSD.org/src/rev/cc437f50c200
branches: trunk
changeset: 772177:cc437f50c200
user: macallan <macallan%NetBSD.org@localhost>
date: Thu Dec 22 04:53:43 2011 +0000
description:
support anti-aliased fonts in 32bit colour
diffstat:
sys/dev/wsfb/genfb.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diffs (28 lines):
diff -r 1dc187802a59 -r cc437f50c200 sys/dev/wsfb/genfb.c
--- a/sys/dev/wsfb/genfb.c Thu Dec 22 04:52:45 2011 +0000
+++ b/sys/dev/wsfb/genfb.c Thu Dec 22 04:53:43 2011 +0000
@@ -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 @@
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;
Home |
Main Index |
Thread Index |
Old Index