Don't set erasing flag when it is unnecessary so hwmap could compress better
authorunc0rr
Tue, 26 Jun 2012 21:13:27 +0400
changeset 7298 a5f2fa95e711
parent 7296 fb5b7cb58a67
child 7300 7672733e4dc9
Don't set erasing flag when it is unnecessary so hwmap could compress better
QTfrontend/drawmapscene.cpp
--- a/QTfrontend/drawmapscene.cpp	Tue Jun 26 11:08:33 2012 -0400
+++ b/QTfrontend/drawmapscene.cpp	Tue Jun 26 21:13:27 2012 +0400
@@ -224,8 +224,11 @@
             qint16 px = qToBigEndian((qint16)point.x());
             qint16 py = qToBigEndian((qint16)point.y());
             quint8 flags = 0;
-            if(!cnt) flags = 0x80 + params.width;
-            if(params.erasing) flags |= 0x40;
+            if(!cnt)
+            {
+                flags = 0x80 + params.width;
+                if(params.erasing) flags |= 0x40;
+            }
             b.append((const char *)&px, 2);
             b.append((const char *)&py, 2);
             b.append((const char *)&flags, 1);