diff options
author | Pierre Ossman <ossman@cendio.se> | 2014-01-15 13:23:43 +0100 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2014-07-07 13:27:09 +0200 |
commit | b948a9172f7cc1fd24761221bc1e2d8d10648c10 (patch) | |
tree | 050bb91b53744a9d16c4225139e8811f904fcb9a /common/rfb/tightEncode.h | |
parent | 947b48de71e03df2df7010c5760766b93483c9e5 (diff) | |
download | tigervnc-b948a9172f7cc1fd24761221bc1e2d8d10648c10.tar.gz tigervnc-b948a9172f7cc1fd24761221bc1e2d8d10648c10.zip |
Make the subsampling setting follow the common style
Diffstat (limited to 'common/rfb/tightEncode.h')
-rw-r--r-- | common/rfb/tightEncode.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/rfb/tightEncode.h b/common/rfb/tightEncode.h index 0c616f53..6a59ba81 100644 --- a/common/rfb/tightEncode.h +++ b/common/rfb/tightEncode.h @@ -193,7 +193,7 @@ void TIGHT_ENCODE (const Rect& r, rdr::OutStream *os, bool forceSolid) rdr::U32 solidColor; const PIXEL_T *rawPixels = (const PIXEL_T *)ig->getRawBufferR(r, &stride); PIXEL_T *pixels = NULL; - bool grayScaleJPEG = (jpegSubsampling == SUBSAMP_GRAY && jpegQuality != -1); + bool grayScaleJPEG = (jpegSubsampling == subsampleGray && jpegQuality != -1); #if (BPP == 32) // Check if it's necessary to pack 24-bit pixels, and |