diff options
author | Pierre Ossman <ossman@cendio.se> | 2011-11-03 13:20:32 +0000 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2011-11-03 13:20:32 +0000 |
commit | 4eb7420e410592d6753ee4dcdcb3834baad61f09 (patch) | |
tree | 60e4f19fd515ae65d7f9840882cbf55102de2f6f /common/rfb/tightEncode.h | |
parent | fa6cda7b1d486019d51a06acfbb836d1d6256c77 (diff) | |
download | tigervnc-4eb7420e410592d6753ee4dcdcb3834baad61f09.tar.gz tigervnc-4eb7420e410592d6753ee4dcdcb3834baad61f09.zip |
Rename and document TransImageGetter::getPixelsRW() to make it more obvious
that it bypasses the normal conversion logic.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4754 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'common/rfb/tightEncode.h')
-rw-r--r-- | common/rfb/tightEncode.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common/rfb/tightEncode.h b/common/rfb/tightEncode.h index a6a82417..37c7ae76 100644 --- a/common/rfb/tightEncode.h +++ b/common/rfb/tightEncode.h @@ -191,7 +191,7 @@ void TIGHT_ENCODE (const Rect& r, rdr::OutStream *os, bool forceSolid) { int stride = r.width(); rdr::U32 solidColor; - PIXEL_T *pixels = (PIXEL_T *)ig->getPixelsRW(r, &stride); + PIXEL_T *pixels = (PIXEL_T *)ig->getRawPixelsRW(r, &stride); bool grayScaleJPEG = (jpegSubsampling == SUBSAMP_GRAY && jpegQuality != -1); #if (BPP == 32) @@ -640,7 +640,7 @@ bool CHECK_SOLID_TILE(Rect& r, rdr::U32 *colorPtr, bool needSameColor) int w = r.width(), h = r.height(); int stride = w; - buf = (PIXEL_T *)ig->getPixelsRW(r, &stride); + buf = (PIXEL_T *)ig->getRawPixelsRW(r, &stride); colorValue = *buf; if (needSameColor && (rdr::U32)colorValue != *colorPtr) |