Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/wsfb sys/dev/rasops routines support anti-aliasing f...



details:   https://anonhg.NetBSD.org/src/rev/e2e73159a36d
branches:  trunk
changeset: 962663:e2e73159a36d
user:      rin <rin%NetBSD.org@localhost>
date:      Sun Jul 28 02:42:48 2019 +0000

description:
sys/dev/rasops routines support anti-aliasing for depths 15 and 16.

diffstat:

 sys/dev/wsfb/genfb.c |  7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diffs (28 lines):

diff -r 3e1087f6aeae -r e2e73159a36d sys/dev/wsfb/genfb.c
--- a/sys/dev/wsfb/genfb.c      Sun Jul 28 02:37:54 2019 +0000
+++ b/sys/dev/wsfb/genfb.c      Sun Jul 28 02:42:48 2019 +0000
@@ -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 @@
                }
        }
 
+       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;
 



Home | Main Index | Thread Index | Old Index