Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/ic wsfont_matches() and wsfont_find() take an extra ...



details:   https://anonhg.NetBSD.org/src/rev/e117dab345eb
branches:  trunk
changeset: 772685:e117dab345eb
user:      macallan <macallan%NetBSD.org@localhost>
date:      Wed Jan 11 20:41:28 2012 +0000

description:
wsfont_matches() and wsfont_find() take an extra parameter now

diffstat:

 sys/dev/ic/igsfb.c      |   9 +++++----
 sys/dev/ic/vga.c        |  10 +++++-----
 sys/dev/ic/vga_raster.c |  14 ++++++++------
 3 files changed, 18 insertions(+), 15 deletions(-)

diffs (132 lines):

diff -r dc32ced21b8b -r e117dab345eb sys/dev/ic/igsfb.c
--- a/sys/dev/ic/igsfb.c        Wed Jan 11 20:36:26 2012 +0000
+++ b/sys/dev/ic/igsfb.c        Wed Jan 11 20:41:28 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: igsfb.c,v 1.51 2012/01/11 16:12:38 macallan Exp $ */
+/*     $NetBSD: igsfb.c,v 1.52 2012/01/11 20:41:28 macallan Exp $ */
 
 /*
  * Copyright (c) 2002, 2003 Valeriy E. Ushakov
@@ -31,7 +31,7 @@
  * Integraphics Systems IGA 168x and CyberPro series.
  */
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: igsfb.c,v 1.51 2012/01/11 16:12:38 macallan Exp $");
+__KERNEL_RCSID(0, "$NetBSD: igsfb.c,v 1.52 2012/01/11 20:41:28 macallan Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -432,14 +432,15 @@
        /* prefer gallant that is identical to the one the prom uses */
        wsfcookie = wsfont_find("Gallant", 12, 22, 0,
                                WSDISPLAY_FONTORDER_L2R,
-                               WSDISPLAY_FONTORDER_L2R);
+                               WSDISPLAY_FONTORDER_L2R, WSFONT_FIND_BITMAP);
        if (wsfcookie <= 0) {
 #ifdef DIAGNOSTIC
                printf("unable to find font Gallant 12x22\n");
 #endif
                wsfcookie = wsfont_find(NULL, 0, 0, 0, /* any font at all? */
                                        WSDISPLAY_FONTORDER_L2R,
-                                       WSDISPLAY_FONTORDER_L2R);
+                                       WSDISPLAY_FONTORDER_L2R,
+                                       WSFONT_FIND_BITMAP);
        }
 
        if (wsfcookie <= 0) {
diff -r dc32ced21b8b -r e117dab345eb sys/dev/ic/vga.c
--- a/sys/dev/ic/vga.c  Wed Jan 11 20:36:26 2012 +0000
+++ b/sys/dev/ic/vga.c  Wed Jan 11 20:41:28 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vga.c,v 1.107 2011/06/08 10:25:21 drochner Exp $ */
+/* $NetBSD: vga.c,v 1.108 2012/01/11 20:41:28 macallan Exp $ */
 
 /*
  * Copyright (c) 1995, 1996 Carnegie-Mellon University.
@@ -28,7 +28,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vga.c,v 1.107 2011/06/08 10:25:21 drochner Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vga.c,v 1.108 2012/01/11 20:41:28 macallan Exp $");
 
 /* for WSCONS_SUPPORT_PCVTFONTS */
 #include "opt_wsdisplay_compat.h"
@@ -325,7 +325,7 @@
 
        TAILQ_FOREACH(f, &vc->vc_fontlist, next) {
                if (wsfont_matches(f->wsfont, name,
-                   8, scr->pcs.type->fontheight, 0) &&
+                   8, scr->pcs.type->fontheight, 0, WSFONT_FIND_BITMAP) &&
                    (!primary || vga_valid_primary_font(f))) {
 #ifdef VGAFONTDEBUG
                        if (scr != &vga_console_screen || vga_console_attached)
@@ -337,7 +337,7 @@
        }
 
        cookie = wsfont_find(name, 8, scr->pcs.type->fontheight, 0,
-           WSDISPLAY_FONTORDER_L2R, 0);
+           WSDISPLAY_FONTORDER_L2R, 0, WSFONT_FIND_BITMAP);
        /* XXX obey "primary" */
        if (cookie == -1) {
 #ifdef VGAFONTDEBUG
@@ -570,7 +570,7 @@
                int cookie;
 
                cookie = wsfont_find(NULL, 8, 16, 0,
-                    WSDISPLAY_FONTORDER_L2R, 0);
+                    WSDISPLAY_FONTORDER_L2R, 0, WSFONT_FIND_BITMAP);
                if (cookie == -1 || wsfont_lock(cookie, &wf))
                        panic("vga_init: can't load console font");
                vga_loadchars(&vc->hdl, 0, wf->firstchar, wf->numchars,
diff -r dc32ced21b8b -r e117dab345eb sys/dev/ic/vga_raster.c
--- a/sys/dev/ic/vga_raster.c   Wed Jan 11 20:36:26 2012 +0000
+++ b/sys/dev/ic/vga_raster.c   Wed Jan 11 20:41:28 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vga_raster.c,v 1.34 2010/03/24 19:33:51 tnn Exp $      */
+/*     $NetBSD: vga_raster.c,v 1.35 2012/01/11 20:41:28 macallan Exp $ */
 
 /*
  * Copyright (c) 2001, 2002 Bang Jun-Young
@@ -56,7 +56,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vga_raster.c,v 1.34 2010/03/24 19:33:51 tnn Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vga_raster.c,v 1.35 2012/01/11 20:41:28 macallan Exp $");
 
 #include "opt_wsmsgattrs.h" /* for WSDISPLAY_CUSTOM_OUTPUT */
 
@@ -424,10 +424,11 @@
 
                /* prefer 8x16 pixel font */
                cookie = wsfont_find(NULL, 8, 16, 0, WSDISPLAY_FONTORDER_L2R,
-                   0);
+                   0, WSFONT_FIND_BITMAP);
                if (cookie == -1)
                        cookie = wsfont_find(NULL, 0, 0, 0,
-                           WSDISPLAY_FONTORDER_L2R, WSDISPLAY_FONTORDER_L2R);
+                           WSDISPLAY_FONTORDER_L2R, WSDISPLAY_FONTORDER_L2R,
+                           WSFONT_FIND_BITMAP);
                if (cookie == -1 || wsfont_lock(cookie, &wf))
                        panic("vga_raster_init: can't load console font");
                vf->font = wf;
@@ -836,7 +837,8 @@
        int cookie;
 
        LIST_FOREACH(vf, &vc->vc_fontlist, next) {
-               if (wsfont_matches(vf->font, 0, 0, scr->type->fontheight, 0)) {
+               if (wsfont_matches(vf->font, 0, 0, scr->type->fontheight, 0,
+                   WSFONT_FIND_BITMAP)) {
                        scr->encoding = vf->font->encoding;
                        LIST_INSERT_HEAD(&scr->fontset, vf, next);
                        return;
@@ -844,7 +846,7 @@
        }
 
        cookie = wsfont_find(NULL, 0, scr->type->fontheight, 0,
-           WSDISPLAY_FONTORDER_L2R, 0);
+           WSDISPLAY_FONTORDER_L2R, 0, WSFONT_FIND_BITMAP);
        if (cookie == -1)
                return;
 



Home | Main Index | Thread Index | Old Index