From e69065cc663741a898902013036cd3e66f90ff1c Mon Sep 17 00:00:00 2001 From: Marcus Glocker Date: Sat, 26 Sep 2009 09:46:52 +0000 Subject: Fix artefacts in compression mode especially seen when running X. --- sys/dev/usb/udl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/dev/usb/udl.c') diff --git a/sys/dev/usb/udl.c b/sys/dev/usb/udl.c index 799a382906f..d6a11400531 100644 --- a/sys/dev/usb/udl.c +++ b/sys/dev/usb/udl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: udl.c,v 1.50 2009/09/21 07:41:18 mglocker Exp $ */ +/* $OpenBSD: udl.c,v 1.51 2009/09/26 09:46:51 mglocker Exp $ */ /* * Copyright (c) 2009 Marcus Glocker @@ -1379,7 +1379,7 @@ udl_cmd_insert_buf_comp(struct udl_softc *sc, uint8_t *buf, uint32_t len) * skip the header and finish up the main-block. We return zero * to signal our caller that the header has been skipped. */ - if (cb->compblock > UDL_CB_RESTART_SIZE) { + if (cb->compblock >= UDL_CB_RESTART_SIZE) { cb->off -= UDL_CMD_WRITE_HEAD_SIZE; cb->compblock -= UDL_CMD_WRITE_HEAD_SIZE; eob = 1; -- cgit v1.2.3