Source-Changes-HG archive

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

[xsrc/trunk]: xsrc/local/programs/bdfload fix tpyo - now we draw characters w...



details:   https://anonhg.NetBSD.org/xsrc/rev/8e7d37306f70
branches:  trunk
changeset: 7133:8e7d37306f70
user:      macallan <macallan%NetBSD.org@localhost>
date:      Tue Aug 16 21:32:21 2022 +0000

description:
fix tpyo - now we draw characters with a smaller bounding box than the
character cell correctly, like term14.bdf

diffstat:

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

diffs (20 lines):

diff -r 8fcc2a23447a -r 8e7d37306f70 local/programs/bdfload/bdfload.c
--- a/local/programs/bdfload/bdfload.c  Tue Aug 16 21:28:53 2022 +0000
+++ b/local/programs/bdfload/bdfload.c  Tue Aug 16 21:32:21 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: bdfload.c,v 1.5 2022/08/16 21:28:53 macallan Exp $     */
+/*     $NetBSD: bdfload.c,v 1.6 2022/08/16 21:32:21 macallan Exp $     */
 
 /*
  * Copyright (c) 2018 Michael Lorenz
@@ -213,8 +213,8 @@
                                        l = l << 8;
                                l = l >> left;
                                if (stride == 1) {
-                                       *gptr = l;
-                                       gptr++;
+                                       *bptr = l;
+                                       bptr++;
                                } else {
                                        *bptr16 = htobe16(l);
                                        bptr16++;



Home | Main Index | Thread Index | Old Index