瀏覽代碼

Keep alpha in cursor alpha conversion

Don't touch the existing value or we might mess it up when we avoid
division by zero.
tags/v1.8.90
Pierre Ossman 6 年之前
父節點
當前提交
a846421a73
共有 1 個檔案被更改,包括 0 行新增1 行删除
  1. 0
    1
      common/rfb/CMsgReader.cxx

+ 0
- 1
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;
}

Loading…
取消
儲存