Source-Changes-HG archive

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

[src/trunk]: src/usr.sbin/wsfontload Update for changes to 'struct wsdisplay_...



details:   https://anonhg.NetBSD.org/src/rev/90a292116743
branches:  trunk
changeset: 480164:90a292116743
user:      ad <ad%NetBSD.org@localhost>
date:      Wed Jan 05 18:46:43 2000 +0000

description:
Update for changes to 'struct wsdisplay_font'.

diffstat:

 usr.sbin/wsfontload/wsfontload.8 |  14 +++++++++++++-
 usr.sbin/wsfontload/wsfontload.c |  12 ++++++++++--
 2 files changed, 23 insertions(+), 3 deletions(-)

diffs (69 lines):

diff -r 7638add38d5f -r 90a292116743 usr.sbin/wsfontload/wsfontload.8
--- a/usr.sbin/wsfontload/wsfontload.8  Wed Jan 05 18:44:21 2000 +0000
+++ b/usr.sbin/wsfontload/wsfontload.8  Wed Jan 05 18:46:43 2000 +0000
@@ -1,4 +1,4 @@
-.\"    $NetBSD: wsfontload.8,v 1.5 1999/04/06 04:54:22 cgd Exp $
+.\"    $NetBSD: wsfontload.8,v 1.6 2000/01/05 18:46:43 ad Exp $
 .\"
 .Dd January 13, 1999
 .Os
@@ -23,6 +23,12 @@
 .Bk -words
 .Op Fl N Ar name
 .Ek
+.Bk -words
+.Op Fl b
+.Ek
+.Bk -words
+.Op Fl B
+.Ek
 .Op Ar fontfile
 .Sh DESCRIPTION
 The
@@ -68,6 +74,12 @@
 In none is given, the
 .Ar fontfile
 name is used to create one.
+.It Fl b
+Specifies that the font data is ordered right-to-left bit wise. The default
+is left-to-right.
+.It Fl B
+Specifies that the font data is ordered right-to-left byte wise. The default
+is left-to-right.
 .El
 .Pp
 Typically, the
diff -r 7638add38d5f -r 90a292116743 usr.sbin/wsfontload/wsfontload.c
--- a/usr.sbin/wsfontload/wsfontload.c  Wed Jan 05 18:44:21 2000 +0000
+++ b/usr.sbin/wsfontload/wsfontload.c  Wed Jan 05 18:46:43 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: wsfontload.c,v 1.1 1999/01/13 19:02:34 drochner Exp $ */
+/* $NetBSD: wsfontload.c,v 1.2 2000/01/05 18:46:43 ad Exp $ */
 
 /*
  * Copyright (c) 1999
@@ -82,8 +82,10 @@
        f.stride = 0;
        f.encoding = DEFENC;
        f.name = 0;
+       f.bitorder = WSDISPLAY_FONTORDER_L2R;
+       f.byteorder = WSDISPLAY_FONTORDER_L2R;
 
-       while ((c = getopt(argc, argv, "f:w:h:e:N:")) != -1) {
+       while ((c = getopt(argc, argv, "f:w:h:e:N:bB")) != -1) {
                switch (c) {
                case 'f':
                        wsdev = optarg;
@@ -102,6 +104,12 @@
                case 'N':
                        f.name = optarg;
                        break;
+               case 'b':
+                       f.bitorder = WSDISPLAY_FONTORDER_R2L;
+                       break;
+               case 'B':
+                       f.byteorder = WSDISPLAY_FONTORDER_R2L;
+                       break;
                case '?':
                default:
                        usage();



Home | Main Index | Thread Index | Old Index