Source-Changes-HG archive

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

[xsrc/trunk]: xsrc/local/programs/bdfload use [] instead of # to represent pi...



details:   https://anonhg.NetBSD.org/xsrc/rev/3112fd93bcc1
branches:  trunk
changeset: 7136:3112fd93bcc1
user:      macallan <macallan%NetBSD.org@localhost>
date:      Tue Aug 23 18:11:43 2022 +0000

description:
use [] instead of # to represent pixels in the header output, this way pixels
are somewhat closer to square and the preview looks closer to the actual
output.
suggested by uwe@

diffstat:

 local/programs/bdfload/bdfload.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (20 lines):

diff -r 135bdd290a91 -r 3112fd93bcc1 local/programs/bdfload/bdfload.c
--- a/local/programs/bdfload/bdfload.c  Tue Aug 23 13:56:04 2022 +0000
+++ b/local/programs/bdfload/bdfload.c  Tue Aug 23 18:11:43 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: bdfload.c,v 1.8 2022/08/23 13:56:04 macallan Exp $     */
+/*     $NetBSD: bdfload.c,v 1.9 2022/08/23 18:11:43 macallan Exp $     */
 
 /*
  * Copyright (c) 2018 Michael Lorenz
@@ -199,8 +199,8 @@
                                c = buffer[idx + x];
                                msk = 0x80;
                                for (j = 0; j < 8; j++) {
-                                       fprintf(output, "%c",
-                                           (c & msk) != 0 ? '#' : ' ');
+                                       fprintf(output, "%s",
+                                           (c & msk) != 0 ? "[]" : ". ");
                                        msk = msk >> 1;
                                }
                        }



Home | Main Index | Thread Index | Old Index