Module Name: src
Committed By: rin
Date: Sun Jul 28 02:42:48 UTC 2019
Modified Files:
src/sys/dev/wsfb: genfb.c
Log Message:
sys/dev/rasops routines support anti-aliasing for depths 15 and 16.
To generate a diff of this commit:
cvs rdiff -u -r1.65 -r1.66 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.65 src/sys/dev/wsfb/genfb.c:1.66
--- src/sys/dev/wsfb/genfb.c:1.65 Fri May 31 01:35:56 2019
+++ src/sys/dev/wsfb/genfb.c Sun Jul 28 02:42:48 2019
@@ -1,4 +1,4 @@
-/* $NetBSD: genfb.c,v 1.65 2019/05/31 01:35:56 jmcneill Exp $ */
+/* $NetBSD: genfb.c,v 1.66 2019/07/28 02:42:48 rin Exp $ */
/*-
* Copyright (c) 2007 Michael Lorenz
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: genfb.c,v 1.65 2019/05/31 01:35:56 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: genfb.c,v 1.66 2019/07/28 02:42:48 rin Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -588,6 +588,9 @@ genfb_init_screen(void *cookie, struct v
}
}
+ if (ri->ri_depth == 16 || ri->ri_depth == 15)
+ ri->ri_flg |= RI_ENABLE_ALPHA;
+
if (ri->ri_depth == 8 && sc->sc_cmcb != NULL)
ri->ri_flg |= RI_ENABLE_ALPHA | RI_8BIT_IS_RGB;