From a846421a73d20e409379fd0ff620b27cac8fbcba Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Mon, 2 Oct 2017 11:06:04 +0200 Subject: [PATCH] Keep alpha in cursor alpha conversion Don't touch the existing value or we might mess it up when we avoid division by zero. --- common/rfb/CMsgReader.cxx | 1 - 1 file changed, 1 deletion(-) 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; } -- 2.39.5