diff options
author | 2009-09-26 09:46:51 +0000 | |
---|---|---|
committer | 2009-09-26 09:46:51 +0000 | |
commit | 29d27783989023b49398e7c17a09f6398beeeb39 (patch) | |
tree | 2ddeea0aac45654f657173b57bacdbb73104ba9a | |
parent | - enable axe/aue to make my life a bit easier (diff) | |
download | wireguard-openbsd-29d27783989023b49398e7c17a09f6398beeeb39.tar.xz wireguard-openbsd-29d27783989023b49398e7c17a09f6398beeeb39.zip |
Fix artefacts in compression mode especially seen when running X.
-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; |