diff options
| author | rin <rin@NetBSD.org> | 2019-08-07 10:53:41 +0000 |
|---|---|---|
| committer | rin <rin@NetBSD.org> | 2019-08-07 10:53:41 +0000 |
| commit | 91a4a98f97ffd25ce0445da01013098cd9c61ae3 (patch) | |
| tree | c65bb02f4c3a2c2cafdf891b714ece15e6fa87ac /sys/dev/rasops | |
| parent | 07e907c726c5522c818ddaf6343806bd979cd1b8 (diff) | |
Simplify calculation for 12-byte alignment.
No functional changes.
Diffstat (limited to 'sys/dev/rasops')
| -rw-r--r-- | sys/dev/rasops/rasops.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/rasops/rasops.c b/sys/dev/rasops/rasops.c index 054848e42cb..fb11ba9caf9 100644 --- a/sys/dev/rasops/rasops.c +++ b/sys/dev/rasops/rasops.c @@ -1,4 +1,4 @@ -/* $NetBSD: rasops.c,v 1.109 2019/08/07 10:51:57 rin Exp $ */ +/* $NetBSD: rasops.c,v 1.110 2019/08/07 10:53:41 rin Exp $ */ /*- * Copyright (c) 1999 The NetBSD Foundation, Inc. @@ -30,7 +30,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: rasops.c,v 1.109 2019/08/07 10:51:57 rin Exp $"); +__KERNEL_RCSID(0, "$NetBSD: rasops.c,v 1.110 2019/08/07 10:53:41 rin Exp $"); #ifdef _KERNEL_OPT #include "opt_rasops.h" @@ -446,9 +446,9 @@ rasops_reconfig(struct rasops_info *ri, int wantrows, int wantcols) xoff &= ~3; } else { /* - * Truncate to word and 24-bit color boundary. + * Truncate to both word and 24-bit color boundary. */ - xoff = (xoff / (4 * 3)) * (4 * 3); + xoff -= xoff % 12; } yoff = ((ri->ri_height - ri->ri_emuheight) >> 1) * |
