diff options
author | Pierre Ossman <ossman@cendio.se> | 2014-02-12 13:12:31 +0100 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2014-07-07 13:27:09 +0200 |
commit | 4d0bc6e7cac91fedb70c278a6dc36c75a1344a0e (patch) | |
tree | d2e2e68f65f9968095818678c9929fa2ac940bc0 /common/rfb/tightEncode.h | |
parent | b266561b0c6e97fe0669fb25719503aa608237ce (diff) | |
download | tigervnc-4d0bc6e7cac91fedb70c278a6dc36c75a1344a0e.tar.gz tigervnc-4d0bc6e7cac91fedb70c278a6dc36c75a1344a0e.zip |
Fix some offenders that poke around in the PixelFormat internals
Diffstat (limited to 'common/rfb/tightEncode.h')
-rw-r--r-- | common/rfb/tightEncode.h | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/common/rfb/tightEncode.h b/common/rfb/tightEncode.h index d5b2c660..c121b7aa 100644 --- a/common/rfb/tightEncode.h +++ b/common/rfb/tightEncode.h @@ -540,12 +540,7 @@ void FAST_FILL_PALETTE (const PIXEL_T *data, int stride, const Rect& r) *dataend = &data[stride * h]; bool willTransform = ig->willTransform(); - if (willTransform) { - mask = serverpf.redMax << serverpf.redShift; - mask |= serverpf.greenMax << serverpf.greenShift; - mask |= serverpf.blueMax << serverpf.blueShift; - } - else mask = ~0; + serverpf.bufferFromPixel((rdr::U8*)&mask, ~0); c0 = data[0] & mask; n0 = 0; |