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 stupid alignment bug. The 'slop' stuff is...
details: https://anonhg.NetBSD.org/src/rev/8ae50efab9f1
branches: trunk
changeset: 473692:8ae50efab9f1
user: ad <ad%NetBSD.org@localhost>
date: Tue Jun 15 21:34:05 1999 +0000
description:
Fix stupid alignment bug. The 'slop' stuff is due for replacement with masks
RSN per the README.
diffstat:
sys/dev/rasops/rasops.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (36 lines):
diff -r ec7aea6a6b87 -r 8ae50efab9f1 sys/dev/rasops/rasops.c
--- a/sys/dev/rasops/rasops.c Tue Jun 15 15:54:28 1999 +0000
+++ b/sys/dev/rasops/rasops.c Tue Jun 15 21:34:05 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rasops.c,v 1.9 1999/05/18 21:51:59 ad Exp $ */
+/* $NetBSD: rasops.c,v 1.10 1999/06/15 21:34:05 ad Exp $ */
/*-
* Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rasops.c,v 1.9 1999/05/18 21:51:59 ad Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rasops.c,v 1.10 1999/06/15 21:34:05 ad Exp $");
#include "rasops_glue.h"
@@ -774,7 +774,7 @@
height = ri->ri_font->fontheight;
mask = ri->ri_devcmap[15];
- slop1 = (int)rp & 3;
+ slop1 = (4 - ((int)rp & 3)) & 3;
if (slop1 > ri->ri_xscale)
slop1 = ri->ri_xscale;
@@ -902,7 +902,7 @@
return;
}
- slop1 = (int)rp & 3;
+ slop1 = (4 - ((int)rp & 3)) & 3;
slop2 = (num - slop1) & 3;
num -= slop1 + slop2;
n8 = num >> 5;
Home |
Main Index |
Thread Index |
Old Index