]> source.dussan.org Git - tigervnc.git/commitdiff
Removed unused argument of a function.
authorConstantin Kaplinsky <const@tightvnc.com>
Thu, 22 Sep 2005 05:38:56 +0000 (05:38 +0000)
committerConstantin Kaplinsky <const@tightvnc.com>
Thu, 22 Sep 2005 05:38:56 +0000 (05:38 +0000)
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@328 3789f03b-4d11-0410-bbf8-ca57d06f2519

rfb/TightPalette.cxx
rfb/TightPalette.h
rfb/hextileEncodeBetter.h

index 4fe7a744df7c065c6afdc5dc875228afbfe63ec9..c4ed04e4757c1581d9244a1d223aadd664b7da21 100644 (file)
@@ -46,7 +46,7 @@ void TightPalette::setMaxColors(int maxColors)
   }
 }
 
-int TightPalette::insert(rdr::U32 rgb, int numPixels, int bpp)
+int TightPalette::insert(rdr::U32 rgb, int numPixels)
 {
   TightColorList *pnode;
   TightColorList *prev_pnode = NULL;
index 3f8b7ad49cbe9f1efadec0933b27a5e56792b362..2f6448ea66cb4fd8f87f582386808aed1e980584 100644 (file)
@@ -74,7 +74,7 @@ namespace rfb {
     // reports zero colors and cannot be used any more without calling
     // reset().
     //
-    int insert(rdr::U32 rgb, int numPixels, int bpp);
+    int insert(rdr::U32 rgb, int numPixels);
 
     //
     // Return number of colors in the palette.
index 08adc7da6360b812d43d62e4e21cfc33234cb80f..59df102a5132c8a8b6c2d0fdace87cc51c579ac8 100644 (file)
@@ -164,7 +164,7 @@ void HEXTILE_TILE::analyze()
     *colorsPtr++ = color;
     *coordsPtr++ = 0;
     *coordsPtr++ = (rdr::U8)(((m_width - 1) << 4) | ((y - 1) & 0x0F));
-    m_pal.insert(color, 1, BPP);
+    m_pal.insert(color, 1);
     m_numSubrects++;
   }
 
@@ -200,7 +200,7 @@ void HEXTILE_TILE::analyze()
       *coordsPtr++ = (rdr::U8)((x << 4) | (y & 0x0F));
       *coordsPtr++ = (rdr::U8)(((sw - 1) << 4) | ((sh - 1) & 0x0F));
 
-      if (m_pal.insert(color, 1, BPP) == 0) {
+      if (m_pal.insert(color, 1) == 0) {
         // Handle palette overflow
         m_flags = hextileRaw;
         m_size = 0;