commit | a846421a73d20e409379fd0ff620b27cac8fbcba | [log] [tgz] |
---|---|---|
author | Pierre Ossman <ossman@cendio.se> | Mon Oct 02 11:06:04 2017 +0200 |
committer | Pierre Ossman <ossman@cendio.se> | Mon Oct 02 11:06:04 2017 +0200 |
tree | 45d2581e1221c42119e22e69b2033f46aebf8094 | |
parent | 841e9f32d5952d6f16f67294c2da8bf395066a9b [diff] |
Keep alpha in cursor alpha conversion Don't touch the existing value or we might mess it up when we avoid division by zero.
diff --git a/common/rfb/CMsgReader.cxx b/common/rfb/CMsgReader.cxx index eee6d27..c325d48 100644 --- a/common/rfb/CMsgReader.cxx +++ b/common/rfb/CMsgReader.cxx
@@ -340,7 +340,6 @@ buf[0] = (unsigned)buf[0] * 255/alpha; buf[1] = (unsigned)buf[1] * 255/alpha; buf[2] = (unsigned)buf[2] * 255/alpha; - buf[3] = alpha; buf += 4; }