equal
deleted
inserted
replaced
222 foreach(QPoint point, params.points) |
222 foreach(QPoint point, params.points) |
223 { |
223 { |
224 qint16 px = qToBigEndian((qint16)point.x()); |
224 qint16 px = qToBigEndian((qint16)point.x()); |
225 qint16 py = qToBigEndian((qint16)point.y()); |
225 qint16 py = qToBigEndian((qint16)point.y()); |
226 quint8 flags = 0; |
226 quint8 flags = 0; |
227 if(!cnt) flags = 0x80 + params.width; |
227 if(!cnt) |
228 if(params.erasing) flags |= 0x40; |
228 { |
|
229 flags = 0x80 + params.width; |
|
230 if(params.erasing) flags |= 0x40; |
|
231 } |
229 b.append((const char *)&px, 2); |
232 b.append((const char *)&px, 2); |
230 b.append((const char *)&py, 2); |
233 b.append((const char *)&py, 2); |
231 b.append((const char *)&flags, 1); |
234 b.append((const char *)&flags, 1); |
232 |
235 |
233 ++cnt; |
236 ++cnt; |