From: Pierre Ossman Date: Mon, 2 Oct 2017 09:06:04 +0000 (+0200) Subject: Keep alpha in cursor alpha conversion X-Git-Tag: v1.8.90~96 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=a846421a73d20e409379fd0ff620b27cac8fbcba;p=tigervnc.git 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 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; }