Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/rasops Cosmetic changes. No functional changes.



details:   https://anonhg.NetBSD.org/src/rev/40ff6560126c
branches:  trunk
changeset: 462111:40ff6560126c
user:      rin <rin%NetBSD.org@localhost>
date:      Thu Jul 25 01:07:32 2019 +0000

description:
Cosmetic changes. No functional changes.

diffstat:

 sys/dev/rasops/rasops8.c |  38 ++++++++++++--------------------------
 1 files changed, 12 insertions(+), 26 deletions(-)

diffs (117 lines):

diff -r adb358e106a2 -r 40ff6560126c sys/dev/rasops/rasops8.c
--- a/sys/dev/rasops/rasops8.c  Thu Jul 25 01:00:28 2019 +0000
+++ b/sys/dev/rasops/rasops8.c  Thu Jul 25 01:07:32 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rasops8.c,v 1.38 2019/07/25 00:59:04 rin Exp $ */
+/*     $NetBSD: rasops8.c,v 1.39 2019/07/25 01:07:32 rin Exp $ */
 
 /*-
  * Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rasops8.c,v 1.38 2019/07/25 00:59:04 rin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rasops8.c,v 1.39 2019/07/25 01:07:32 rin Exp $");
 
 #include "opt_rasops.h"
 
@@ -159,7 +159,8 @@
                        dp = rp;
                        if (ri->ri_hwbits)
                                hp = hrp;
-                       fb = fr[3] | (fr[2] << 8) | (fr[1] << 16) | (fr[0] << 24);
+                       fb = fr[3] | (fr[2] << 8) | (fr[1] << 16) |
+                           (fr[0] << 24);
                        fr += fs;
                        rp += ri->ri_stride;
                        if (ri->ri_hwbits)
@@ -379,8 +380,7 @@
                        rp[0] = rp[1] = stamp[0];
                        DELTA(rp, ri->ri_stride, uint32_t *);
                        if (ri->ri_hwbits) {
-                               hp[0] = stamp[0];
-                               hp[1] = stamp[0];
+                               hp[0] = hp[1] = stamp[0];
                                DELTA(hp, ri->ri_stride, uint32_t *);
                        }
                }
@@ -411,8 +411,7 @@
                rp[0] = rp[1] = stamp[15];
                if (ri->ri_hwbits) {
                        DELTA(hp, -(ri->ri_stride << 1), uint32_t *);
-                       hp[0] = stamp[15];
-                       hp[1] = stamp[15];
+                       hp[0] = hp[1] = stamp[15];
                }
        }
 
@@ -441,7 +440,7 @@
        hrp = NULL;
 
        if (!CHAR_IN_FONT(uc, font))
-           return;
+               return;
 
 #ifdef RASOPS_CLIPPING
        if ((unsigned)row >= (unsigned)ri->ri_rows) {
@@ -467,14 +466,10 @@
 
        if (uc == ' ') {
                while (height--) {
-                       uint32_t c = stamp[0];
-
-                       rp[0] = rp[1] = rp[2] = c;
+                       rp[0] = rp[1] = rp[2] = stamp[0];
                        DELTA(rp, ri->ri_stride, uint32_t *);
                        if (ri->ri_hwbits) {
-                               hrp[0] = c;
-                               hrp[1] = c;
-                               hrp[2] = c;
+                               hrp[0] = hrp[1] = hrp[2] = stamp[0];
                                DELTA(hrp, ri->ri_stride, uint32_t *);
                        }
                }
@@ -505,9 +500,7 @@
                rp[0] = rp[1] = rp[2] = stamp[15];
                if (ri->ri_hwbits) {
                        DELTA(hrp, -(ri->ri_stride << 1), uint32_t *);
-                       hrp[0] = stamp[15];
-                       hrp[1] = stamp[15];
-                       hrp[2] = stamp[15];
+                       hrp[0] = hrp[1] = hrp[2] = stamp[15];
                }
        }
 
@@ -558,7 +551,6 @@
        if (ri->ri_hwbits)
                hrp = (uint32_t *)(ri->ri_hwbits + row*ri->ri_yscale +
                    col*ri->ri_xscale);
-
        height = font->fontheight;
 
        if (uc == ' ') {
@@ -566,10 +558,7 @@
                        rp[0] = rp[1] = rp[2] = rp[3] = stamp[0];
                        DELTA(rp, ri->ri_stride, uint32_t *);
                        if (ri->ri_hwbits) {
-                               hrp[0] = stamp[0];
-                               hrp[1] = stamp[0];
-                               hrp[2] = stamp[0];
-                               hrp[3] = stamp[0];
+                               hrp[0] = hrp[1] = hrp[2] = hrp[3] = stamp[0];
                                DELTA(hrp, ri->ri_stride, uint32_t *);
                        }
                }
@@ -602,10 +591,7 @@
                rp[0] = rp[1] = rp[2] = rp[3] = stamp[15];
                if (ri->ri_hwbits) {
                        DELTA(hrp, -(ri->ri_stride << 1), uint32_t *);
-                       hrp[0] = stamp[15];
-                       hrp[1] = stamp[15];
-                       hrp[2] = stamp[15];
-                       hrp[3] = stamp[15];
+                       hrp[0] = hrp[1] = hrp[2] = hrp[3] = stamp[15];
                }
        }
 



Home | Main Index | Thread Index | Old Index