summaryrefslogtreecommitdiffstats
path: root/common/rfb/zrleEncode.h
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2014-02-12 13:16:43 +0100
committerPierre Ossman <ossman@cendio.se>2014-07-07 14:42:08 +0200
commitbcc295e5a60954ff39b011d6a2cbdf052a0efafc (patch)
tree592c120c797609fc84e359d7286b6b8a66b40c8b /common/rfb/zrleEncode.h
parent7b5c069d2e7eaa1748507a03697c14900258e507 (diff)
downloadtigervnc-bcc295e5a60954ff39b011d6a2cbdf052a0efafc.tar.gz
tigervnc-bcc295e5a60954ff39b011d6a2cbdf052a0efafc.zip
Get rid of unnecessary macros as they are only ever set to a single thing
Diffstat (limited to 'common/rfb/zrleEncode.h')
-rw-r--r--common/rfb/zrleEncode.h13
1 files changed, 4 insertions, 9 deletions
diff --git a/common/rfb/zrleEncode.h b/common/rfb/zrleEncode.h
index cfc2a469..8767d541 100644
--- a/common/rfb/zrleEncode.h
+++ b/common/rfb/zrleEncode.h
@@ -19,10 +19,8 @@
//
// zrleEncode.h - zrle encoding function.
//
-// This file is #included after having set the following macros:
+// This file is #included after having set the following macro:
// BPP - 8, 16 or 32
-// EXTRA_ARGS - optional extra arguments
-// GET_IMAGE_INTO_BUF - gets a rectangle of pixel data into a buffer
//
// Note that the buf argument to ZRLE_ENCODE needs to be at least one pixel
// bigger than the largest tile of pixel data, since the ZRLE encoding
@@ -67,11 +65,8 @@ static const int bitsPerPackedPixel[] = {
void ZRLE_ENCODE_TILE (PIXEL_T* data, int w, int h, rdr::OutStream* os);
void ZRLE_ENCODE (const Rect& r, rdr::OutStream* os,
- rdr::ZlibOutStream* zos, void* buf
-#ifdef EXTRA_ARGS
- , EXTRA_ARGS
-#endif
- )
+ rdr::ZlibOutStream* zos, void* buf,
+ TransImageGetter *ig)
{
zos->setUnderlying(os);
// RLE overhead is at worst 1 byte per 64x64 (4Kpixel) block
@@ -88,7 +83,7 @@ void ZRLE_ENCODE (const Rect& r, rdr::OutStream* os,
t.br.x = __rfbmin(r.br.x, t.tl.x + 64);
- GET_IMAGE_INTO_BUF(t,buf);
+ ig->getImage(buf, t);
ZRLE_ENCODE_TILE((PIXEL_T*)buf, t.width(), t.height(), zos);
}