diff options
author | Pierre Ossman <ossman@cendio.se> | 2014-01-20 16:55:04 +0100 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2014-07-07 13:27:07 +0200 |
commit | 867bd12a4f4048b6fc71eb9e966a30366a60b7ca (patch) | |
tree | f6f359bbc7c98c82d4470db04fba669cd0d0d0b2 /common/rfb/PixelFormat.cxx | |
parent | e80659862d9e82ffe9ace0070447bdfdbe85488b (diff) | |
download | tigervnc-867bd12a4f4048b6fc71eb9e966a30366a60b7ca.tar.gz tigervnc-867bd12a4f4048b6fc71eb9e966a30366a60b7ca.zip |
Remove unused pixel conversion method
Diffstat (limited to 'common/rfb/PixelFormat.cxx')
-rw-r--r-- | common/rfb/PixelFormat.cxx | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/common/rfb/PixelFormat.cxx b/common/rfb/PixelFormat.cxx index 3604a6b2..769afc6a 100644 --- a/common/rfb/PixelFormat.cxx +++ b/common/rfb/PixelFormat.cxx @@ -314,23 +314,6 @@ void PixelFormat::rgbFromPixel(Pixel p, ColourMap* cm, Colour* rgb) const } -void PixelFormat::rgbFromBuffer(rdr::U16* dst, const rdr::U8* src, int pixels, ColourMap* cm) const -{ - Pixel p; - rdr::U16 r, g, b; - - while (pixels--) { - p = pixelFromBuffer(src); - src += bpp/8; - - rgbFromPixel(p, cm, &r, &g, &b); - *(dst++) = r; - *(dst++) = g; - *(dst++) = b; - } -} - - void PixelFormat::rgbFromBuffer(rdr::U8* dst, const rdr::U8* src, int pixels, ColourMap* cm) const { if (is888()) { |