diff options
author | Marcus Glocker <mglocker@cvs.openbsd.org> | 2009-09-26 09:46:52 +0000 |
---|---|---|
committer | Marcus Glocker <mglocker@cvs.openbsd.org> | 2009-09-26 09:46:52 +0000 |
commit | e69065cc663741a898902013036cd3e66f90ff1c (patch) | |
tree | 41036f73b097d1f50efc190e107f248bde5a3c61 /sys/dev/usb/udl.c | |
parent | 9a35c3531b0f38f868f5be76a7bcd901c5d5c355 (diff) |
Fix artefacts in compression mode especially seen when running X.
Diffstat (limited to 'sys/dev/usb/udl.c')
-rw-r--r-- | sys/dev/usb/udl.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 <mglocker@openbsd.org> @@ -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; |