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/8854bc6547e9
branches:  trunk
changeset: 842916:8854bc6547e9
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 cc1ee4994734 -r 8854bc6547e9 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