summaryrefslogtreecommitdiffstats
path: root/common/rfb/hextileDecode.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/hextileDecode.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/hextileDecode.h')
-rw-r--r--common/rfb/hextileDecode.h16
1 files changed, 5 insertions, 11 deletions
diff --git a/common/rfb/hextileDecode.h b/common/rfb/hextileDecode.h
index 7aa04d91..518a6063 100644
--- a/common/rfb/hextileDecode.h
+++ b/common/rfb/hextileDecode.h
@@ -18,11 +18,8 @@
//
// Hextile decoding 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
-// FILL_RECT - fill a rectangle with a single colour
-// IMAGE_RECT - draw a rectangle of pixel data from a buffer
#include <rdr/InStream.h>
#include <rfb/hextileConstants.h>
@@ -40,11 +37,8 @@ namespace rfb {
#define READ_PIXEL CONCAT2E(readOpaque,BPP)
#define HEXTILE_DECODE CONCAT2E(hextileDecode,BPP)
-void HEXTILE_DECODE (const Rect& r, rdr::InStream* is, PIXEL_T* buf
-#ifdef EXTRA_ARGS
- , EXTRA_ARGS
-#endif
- )
+void HEXTILE_DECODE (const Rect& r, rdr::InStream* is, PIXEL_T* buf,
+ CMsgHandler* handler)
{
Rect t;
PIXEL_T bg = 0;
@@ -62,7 +56,7 @@ void HEXTILE_DECODE (const Rect& r, rdr::InStream* is, PIXEL_T* buf
if (tileType & hextileRaw) {
is->readBytes(buf, t.area() * (BPP/8));
- IMAGE_RECT(t, buf);
+ handler->imageRect(t, buf);
continue;
}
@@ -100,7 +94,7 @@ void HEXTILE_DECODE (const Rect& r, rdr::InStream* is, PIXEL_T* buf
}
}
}
- IMAGE_RECT(t, buf);
+ handler->imageRect(t, buf);
}
}
}