Fixed a bug in the Hextile encoder. This bug made the encoder produce
more data than needed, thus affecting compression efficiency.


git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@306 3789f03b-4d11-0410-bbf8-ca57d06f2519
diff --git a/rfb/hextileEncode.h b/rfb/hextileEncode.h
index 15c8862..0b9b8dc 100644
--- a/rfb/hextileEncode.h
+++ b/rfb/hextileEncode.h
@@ -222,7 +222,7 @@
       pix2 = *ptr;
     }
 
-    if (*data == pix2) {
+    if (*ptr == pix2) {
       count2++;
       continue;
     }