From b42db9ad7fdcb807b23f1822ab8f8679af256cf9 Mon Sep 17 00:00:00 2001 From: rin Date: Sat, 20 Nov 2021 00:15:04 +0000 Subject: [PATCH] Accept anti-aliased fonts; they are supported by rotated screen found on hpcarm/WZERO3 and PXA270-based zaurus. --- sys/arch/arm/xscale/pxa2x0_lcd.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/sys/arch/arm/xscale/pxa2x0_lcd.c b/sys/arch/arm/xscale/pxa2x0_lcd.c index 67ca54db2ad2..19c9e2a188c8 100644 --- a/sys/arch/arm/xscale/pxa2x0_lcd.c +++ b/sys/arch/arm/xscale/pxa2x0_lcd.c @@ -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 -__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_lcd_softc *sc, struct rasops_info *rinfo, 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_wsscreen_descr *descr, } /* 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 struct wsscreen_descr *_type, /* * 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;