Module Name: src Committed By: rin Date: Sat Nov 20 00:15:04 UTC 2021
Modified Files: src/sys/arch/arm/xscale: pxa2x0_lcd.c Log Message: Accept anti-aliased fonts; they are supported by rotated screen found on hpcarm/WZERO3 and PXA270-based zaurus. To generate a diff of this commit: cvs rdiff -u -r1.38 -r1.39 src/sys/arch/arm/xscale/pxa2x0_lcd.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/arch/arm/xscale/pxa2x0_lcd.c diff -u src/sys/arch/arm/xscale/pxa2x0_lcd.c:1.38 src/sys/arch/arm/xscale/pxa2x0_lcd.c:1.39 --- src/sys/arch/arm/xscale/pxa2x0_lcd.c:1.38 Fri Nov 20 18:49:45 2020 +++ src/sys/arch/arm/xscale/pxa2x0_lcd.c Sat Nov 20 00:15:04 2021 @@ -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 @@ pxa2x0_lcd_setup_rasops(struct pxa2x0_lc 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 @@ pxa2x0_lcd_setup_wsscreen(struct pxa2x0_ } /* 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 @@ pxa2x0_lcd_alloc_screen(void *v, const s /* * 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;