소스 검색

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…
취소
저장