--- sourceforge.net/trunk/rdesktop/orders.c 2002/06/07 07:49:59 54 +++ sourceforge.net/trunk/rdesktop/orders.c 2002/07/12 03:45:20 55 @@ -476,6 +476,7 @@ int x, y, xfrom, yfrom; uint8 flags = 0; PEN pen; + uint8 opcode; if (present & 0x01) rdp_in_coord(s, &os->x, delta); @@ -497,6 +498,10 @@ in_uint8(s, os->datasize); in_uint8a(s, os->data, os->datasize); } + if (os->flags & 1) + opcode = ROP2_COPY; + else + opcode = ROP2_NXOR; DEBUG(("POLYLINE(x=%d,y=%d,fl=0x%x,fg=0x%x,n=%d,sz=%d)\n", os->x, os->y, os->flags, os->fgcolour, os->lines, os->datasize)); @@ -532,7 +537,7 @@ if (flags & 0x80) y += parse_delta(os->data, &data); - ui_line(ROP2_NXOR, xfrom, yfrom, x, y, &pen); + ui_line(opcode, xfrom, yfrom, x, y, &pen); flags <<= 2; }