# HG changeset patch # User unc0rr # Date 1340730807 -14400 # Node ID a5f2fa95e7116854a765ed50b7211324d04128fe # Parent fb5b7cb58a67dd77952cf6f6c0a701fe0b33fc4b Don't set erasing flag when it is unnecessary so hwmap could compress better diff -r fb5b7cb58a67 -r a5f2fa95e711 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);