summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorkiyohara <kiyohara@NetBSD.org>2010-02-24 12:29:47 +0000
committerkiyohara <kiyohara@NetBSD.org>2010-02-24 12:29:47 +0000
commit5401ccaba628246cde5df793570dca3e9a502659 (patch)
treea248bcbd26b9b88d3eb45c2a1a65f411115bb131 /sys/dev
parent00ff80736eb820645e88529f4a6d26a59bd95cd1 (diff)
Fix porting miss.
However this change in between #ifdef notyet and #endif. Thanks for fukaumi.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/usb/udl.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/dev/usb/udl.c b/sys/dev/usb/udl.c
index c4c3e2b4f11..38358dc0f09 100644
--- a/sys/dev/usb/udl.c
+++ b/sys/dev/usb/udl.c
@@ -1,4 +1,4 @@
-/* $NetBSD: udl.c,v 1.1 2009/11/30 16:18:34 tsutsui Exp $ */
+/* $NetBSD: udl.c,v 1.2 2010/02/24 12:29:47 kiyohara Exp $ */
/*-
* Copyright (c) 2009 FUKAUMI Naoki.
@@ -53,7 +53,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: udl.c,v 1.1 2009/11/30 16:18:34 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: udl.c,v 1.2 2010/02/24 12:29:47 kiyohara Exp $");
#include <sys/param.h>
#include <sys/device.h>
@@ -1191,8 +1191,8 @@ udl_draw_rect(struct udl_softc *sc, struct udl_ioctl_damage *d)
x = d->x1;
y = d->y1;
- width = d->x2 - d->x1 + 1;
- height = d->y2 - d->y1 + 1;
+ width = d->x2 - d->x1;
+ height = d->y2 - d->y1;
sbase = y * sc->sc_width;
ebase = (y + height) * sc->sc_width;
@@ -1225,8 +1225,8 @@ udl_draw_rect_comp(struct udl_softc *sc, struct udl_ioctl_damage *d)
x = d->x1;
y = d->y1;
- width = d->x2 - d->x1 + 1;
- height = d->y2 - d->y1 + 1;
+ width = d->x2 - d->x1;
+ height = d->y2 - d->y1;
soff = y * sc->sc_width + x;
eoff = (y + height) * sc->sc_width + x;