add extra parameter for wsfont_find()

This commit is contained in:
macallan 2012-01-11 20:50:00 +00:00
parent 898dfb38fa
commit a05acd91c0

View File

@ -1,4 +1,4 @@
/* $NetBSD: tga.c,v 1.82 2011/01/25 07:17:07 mrg Exp $ */
/* $NetBSD: tga.c,v 1.83 2012/01/11 20:50:00 macallan Exp $ */
/*
* Copyright (c) 1995, 1996 Carnegie-Mellon University.
@ -28,7 +28,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: tga.c,v 1.82 2011/01/25 07:17:07 mrg Exp $");
__KERNEL_RCSID(0, "$NetBSD: tga.c,v 1.83 2012/01/11 20:50:00 macallan Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -346,10 +346,10 @@ tga_init(bus_space_tag_t memt, pci_chipset_tag_t pc, pcitag_t tag,
wsfont_init();
/* prefer 8 pixel wide font */
cookie = wsfont_find(NULL, 8, 0, 0, WSDISPLAY_FONTORDER_R2L,
WSDISPLAY_FONTORDER_L2R);
WSDISPLAY_FONTORDER_L2R, WSFONT_FIND_BITMAP);
if (cookie <= 0)
cookie = wsfont_find(NULL, 0, 0, 0, WSDISPLAY_FONTORDER_R2L,
WSDISPLAY_FONTORDER_L2R);
WSDISPLAY_FONTORDER_L2R, WSFONT_FIND_BITMAP);
if (cookie <= 0) {
printf("tga: no appropriate fonts.\n");
return;