Selaa lähdekoodia

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 vuotta sitten
vanhempi
commit
a846421a73
1 muutettua tiedostoa jossa 0 lisäystä ja 1 poistoa
  1. 0
    1
      common/rfb/CMsgReader.cxx

+ 0
- 1
common/rfb/CMsgReader.cxx Näytä tiedosto

@@ -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…
Peruuta
Tallenna