Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/arm/xscale Accept anti-aliased fonts; they are supp...



details:   https://anonhg.NetBSD.org/src/rev/efa7bb7a42ef
branches:  trunk
changeset: 1026353:efa7bb7a42ef
user:      rin <rin%NetBSD.org@localhost>
date:      Sat Nov 20 00:15:04 2021 +0000

description:
Accept anti-aliased fonts; they are supported by rotated screen found on
hpcarm/WZERO3 and PXA270-based zaurus.

diffstat:

 sys/arch/arm/xscale/pxa2x0_lcd.c |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (45 lines):

diff -r 14daeb8008dc -r efa7bb7a42ef sys/arch/arm/xscale/pxa2x0_lcd.c
--- a/sys/arch/arm/xscale/pxa2x0_lcd.c  Sat Nov 20 00:08:23 2021 +0000
+++ b/sys/arch/arm/xscale/pxa2x0_lcd.c  Sat Nov 20 00:15:04 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pxa2x0_lcd.c,v 1.38 2020/11/20 18:49:45 thorpej Exp $ */
+/* $NetBSD: pxa2x0_lcd.c,v 1.39 2021/11/20 00:15:04 rin Exp $ */
 
 /*
  * Copyright (c) 2002  Genetec Corporation.  All rights reserved.
@@ -38,7 +38,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pxa2x0_lcd.c,v 1.38 2020/11/20 18:49:45 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pxa2x0_lcd.c,v 1.39 2021/11/20 00:15:04 rin Exp $");
 
 #include "opt_pxa2x0_lcd.h"
 
@@ -644,7 +644,7 @@
     const struct lcd_panel_geometry *geom)
 {
 
-       rinfo->ri_flg = descr->flags;
+       rinfo->ri_flg = descr->flags | RI_ENABLE_ALPHA;
        rinfo->ri_depth = descr->depth;
        rinfo->ri_width = geom->panel_width;
        rinfo->ri_height = geom->panel_height;
@@ -748,7 +748,7 @@
        }
 
        /* let rasops_init calculate # of cols and rows in character */
-       rinfo.ri_flg = 0;
+       rinfo.ri_flg = RI_ENABLE_ALPHA;
        rinfo.ri_depth = descr->depth;
        rinfo.ri_bits = NULL;
        rinfo.ri_width = width;
@@ -806,7 +806,7 @@
        /*
         * initialize raster operation for this screen.
         */
-       scr->rinfo.ri_flg = 0;
+       scr->rinfo.ri_flg = RI_ENABLE_ALPHA;
        scr->rinfo.ri_depth = type->depth;
        scr->rinfo.ri_bits = scr->buf_va;
        scr->rinfo.ri_width = sc->geometry->panel_width;



Home | Main Index | Thread Index | Old Index