Default bit/byte order with #define's and fix usage().
This commit is contained in:
parent
98ac9f3fdb
commit
04ddf7ae0d
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: wsfontload.c,v 1.2 2000/01/05 18:46:43 ad Exp $ */
|
/* $NetBSD: wsfontload.c,v 1.3 2000/01/25 01:04:07 ad Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1999
|
* Copyright (c) 1999
|
||||||
@ -42,10 +42,12 @@
|
|||||||
|
|
||||||
#include <dev/wscons/wsconsio.h>
|
#include <dev/wscons/wsconsio.h>
|
||||||
|
|
||||||
#define DEFDEV "/dev/ttyEcfg"
|
#define DEFDEV "/dev/ttyEcfg"
|
||||||
#define DEFWIDTH 8
|
#define DEFWIDTH 8
|
||||||
#define DEFHEIGHT 16
|
#define DEFHEIGHT 16
|
||||||
#define DEFENC WSDISPLAY_FONTENC_ISO
|
#define DEFENC WSDISPLAY_FONTENC_ISO
|
||||||
|
#define DEFBITORDER WSDISPLAY_FONTORDER_L2R
|
||||||
|
#define DEFBYTEORDER WSDISPLAY_FONTORDER_L2R
|
||||||
|
|
||||||
int main __P((int, char**));
|
int main __P((int, char**));
|
||||||
static void usage __P((void));
|
static void usage __P((void));
|
||||||
@ -58,7 +60,7 @@ usage()
|
|||||||
|
|
||||||
(void)fprintf(stderr,
|
(void)fprintf(stderr,
|
||||||
"Usage: %s [-f wsdev] [-w width] [-h height] [-e encoding]"
|
"Usage: %s [-f wsdev] [-w width] [-h height] [-e encoding]"
|
||||||
" [-N name] [fontfile]\n",
|
" [-N name] [-b] [-B] [fontfile]\n",
|
||||||
__progname);
|
__progname);
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
@ -82,8 +84,8 @@ main(argc, argv)
|
|||||||
f.stride = 0;
|
f.stride = 0;
|
||||||
f.encoding = DEFENC;
|
f.encoding = DEFENC;
|
||||||
f.name = 0;
|
f.name = 0;
|
||||||
f.bitorder = WSDISPLAY_FONTORDER_L2R;
|
f.bitorder = DEFBITORDER;
|
||||||
f.byteorder = WSDISPLAY_FONTORDER_L2R;
|
f.byteorder = DEFBYTEORDER;
|
||||||
|
|
||||||
while ((c = getopt(argc, argv, "f:w:h:e:N:bB")) != -1) {
|
while ((c = getopt(argc, argv, "f:w:h:e:N:bB")) != -1) {
|
||||||
switch (c) {
|
switch (c) {
|
||||||
|
Loading…
Reference in New Issue
Block a user