Pārlūkot izejas kodu

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 pirms 6 gadiem
vecāks
revīzija
a846421a73
1 mainītis faili ar 0 papildinājumiem un 1 dzēšanām
  1. 0
    1
      common/rfb/CMsgReader.cxx

+ 0
- 1
common/rfb/CMsgReader.cxx Parādīt failu

@@ -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;
}

Notiek ielāde…
Atcelt
Saglabāt