diff options
author | Pierre Ossman <ossman@cendio.se> | 2014-01-20 15:05:21 +0100 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2014-07-07 14:50:11 +0200 |
commit | b6b4dc6487690e891ec2487c6cf765d36821fe3a (patch) | |
tree | 77d2e0f49461c7ff8fc78872c9763fe9b6f67adb /common/rfb/SMsgWriter.cxx | |
parent | bcc295e5a60954ff39b011d6a2cbdf052a0efafc (diff) | |
download | tigervnc-b6b4dc6487690e891ec2487c6cf765d36821fe3a.tar.gz tigervnc-b6b4dc6487690e891ec2487c6cf765d36821fe3a.zip |
Remove full support for colour maps
Gets rid of a loooot of code and complexity.
Colour map clients are still supported through an
automatically generated map, but we lose the ability to
develop a client or server that uses colour maps
internally.
Diffstat (limited to 'common/rfb/SMsgWriter.cxx')
-rw-r--r-- | common/rfb/SMsgWriter.cxx | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/common/rfb/SMsgWriter.cxx b/common/rfb/SMsgWriter.cxx index 615eaa93..5dc7c22f 100644 --- a/common/rfb/SMsgWriter.cxx +++ b/common/rfb/SMsgWriter.cxx @@ -23,7 +23,6 @@ #include <rfb/msgTypes.h> #include <rfb/fenceTypes.h> #include <rfb/Exception.h> -#include <rfb/ColourMap.h> #include <rfb/ConnParams.h> #include <rfb/UpdateTracker.h> #include <rfb/Encoder.h> @@ -76,18 +75,18 @@ void SMsgWriter::writeServerInit() } void SMsgWriter::writeSetColourMapEntries(int firstColour, int nColours, - ColourMap* cm) + const rdr::U16 red[], + const rdr::U16 green[], + const rdr::U16 blue[]) { startMsg(msgTypeSetColourMapEntries); os->pad(1); os->writeU16(firstColour); os->writeU16(nColours); for (int i = firstColour; i < firstColour+nColours; i++) { - int r, g, b; - cm->lookup(i, &r, &g, &b); - os->writeU16(r); - os->writeU16(g); - os->writeU16(b); + os->writeU16(red[i]); + os->writeU16(green[i]); + os->writeU16(blue[i]); } endMsg(); } |