aboutsummaryrefslogtreecommitdiffstats
path: root/common/rfb
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2017-10-02 11:06:04 +0200
committerPierre Ossman <ossman@cendio.se>2017-10-02 11:06:04 +0200
commita846421a73d20e409379fd0ff620b27cac8fbcba (patch)
tree45d2581e1221c42119e22e69b2033f46aebf8094 /common/rfb
parent841e9f32d5952d6f16f67294c2da8bf395066a9b (diff)
downloadtigervnc-a846421a73d20e409379fd0ff620b27cac8fbcba.tar.gz
tigervnc-a846421a73d20e409379fd0ff620b27cac8fbcba.zip
Keep alpha in cursor alpha conversion
Don't touch the existing value or we might mess it up when we avoid division by zero.
Diffstat (limited to 'common/rfb')
-rw-r--r--common/rfb/CMsgReader.cxx1
1 files changed, 0 insertions, 1 deletions
diff --git a/common/rfb/CMsgReader.cxx b/common/rfb/CMsgReader.cxx
index eee6d277..c325d48f 100644
--- a/common/rfb/CMsgReader.cxx
+++ b/common/rfb/CMsgReader.cxx
@@ -340,7 +340,6 @@ void CMsgReader::readSetCursorWithAlpha(int width, int height, const Point& hots
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;
}