Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pci/voyager enable font loading
details: https://anonhg.NetBSD.org/src/rev/6ef643f0eddd
branches: trunk
changeset: 358853:6ef643f0eddd
user: macallan <macallan%NetBSD.org@localhost>
date: Fri Jan 19 23:37:36 2018 +0000
description:
enable font loading
diffstat:
sys/dev/pci/voyager/voyagerfb.c | 16 +++++++++++-----
1 files changed, 11 insertions(+), 5 deletions(-)
diffs (59 lines):
diff -r 356e3b821fd5 -r 6ef643f0eddd sys/dev/pci/voyager/voyagerfb.c
--- a/sys/dev/pci/voyager/voyagerfb.c Fri Jan 19 23:17:41 2018 +0000
+++ b/sys/dev/pci/voyager/voyagerfb.c Fri Jan 19 23:37:36 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: voyagerfb.c,v 1.28 2016/01/13 15:56:05 macallan Exp $ */
+/* $NetBSD: voyagerfb.c,v 1.29 2018/01/19 23:37:36 macallan Exp $ */
/*
* Copyright (c) 2009, 2011 Michael Lorenz
@@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: voyagerfb.c,v 1.28 2016/01/13 15:56:05 macallan Exp $");
+__KERNEL_RCSID(0, "$NetBSD: voyagerfb.c,v 1.29 2018/01/19 23:37:36 macallan Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -287,7 +287,8 @@
0, 0,
NULL,
8, 16,
- WSSCREEN_WSCOLORS | WSSCREEN_HILIT,
+ WSSCREEN_WSCOLORS | WSSCREEN_HILIT | WSSCREEN_UNDERLINE |
+ WSSCREEN_RESIZE,
NULL
};
sc->sc_screens[0] = &sc->sc_defaultscreen_descr;
@@ -298,6 +299,8 @@
vcons_init(&sc->vd, sc, &sc->sc_defaultscreen_descr,
&voyagerfb_accessops);
sc->vd.init_screen = voyagerfb_init_screen;
+ sc->vd.show_screen_cookie = &sc->sc_gc;
+ sc->vd.show_screen_cb = glyphcache_adapt;
/* backlight control */
voyagerfb_setup_backlight(sc);
@@ -586,7 +589,7 @@
if (sc->sc_depth == 8) {
ri->ri_flg |= RI_8BIT_IS_RGB;
#ifdef VOYAGERFB_ANTIALIAS
- ri->ri_flg |= RI_ENABLE_ALPHA;
+ ri->ri_flg |= RI_ENABLE_ALPHA | RI_PREFER_ALPHA;
#endif
}
if (sc->sc_depth == 32) {
@@ -602,8 +605,11 @@
ri->ri_bpos = 0;
}
+ scr->scr_flags |= VCONS_LOADFONT;
+
rasops_init(ri, 0, 0);
- ri->ri_caps = WSSCREEN_WSCOLORS;
+ ri->ri_caps = WSSCREEN_WSCOLORS | WSSCREEN_HILIT | WSSCREEN_UNDERLINE |
+ WSSCREEN_RESIZE;
rasops_reconfig(ri, sc->sc_height / ri->ri_font->fontheight,
sc->sc_width / ri->ri_font->fontwidth);
Home |
Main Index |
Thread Index |
Old Index