Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/rasops Fix underline for anti-aliased fonts on 15/16...



details:   https://anonhg.NetBSD.org/src/rev/938931671d02
branches:  trunk
changeset: 962664:938931671d02
user:      rin <rin%NetBSD.org@localhost>
date:      Sun Jul 28 02:45:52 2019 +0000

description:
Fix underline for anti-aliased fonts on 15/16 depth screen.

diffstat:

 sys/dev/rasops/rasops15.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r e2e73159a36d -r 938931671d02 sys/dev/rasops/rasops15.c
--- a/sys/dev/rasops/rasops15.c Sun Jul 28 02:42:48 2019 +0000
+++ b/sys/dev/rasops/rasops15.c Sun Jul 28 02:45:52 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rasops15.c,v 1.28 2019/07/25 15:18:53 rin Exp $        */
+/*     $NetBSD: rasops15.c,v 1.29 2019/07/28 02:45:52 rin Exp $        */
 
 /*-
  * Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rasops15.c,v 1.28 2019/07/25 15:18:53 rin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rasops15.c,v 1.29 2019/07/28 02:45:52 rin Exp $");
 
 #include "opt_rasops.h"
 
@@ -154,7 +154,7 @@
        if (uc == ' ') {
                for (cnt = 0; cnt < width; cnt++)
                        buffer[cnt] = clr[0];
-               while (height--) {
+               for (y = 0; y < height; y++) {
                        dp = rp;
                        DELTA(rp, ri->ri_stride, uint16_t *);
                        memcpy(dp, buffer, width << 1);



Home | Main Index | Thread Index | Old Index