30 |
uint8 *next_packet; |
uint8 *next_packet; |
31 |
uint32 rdp_shareid; |
uint32 rdp_shareid; |
32 |
|
|
33 |
|
#if WITH_DEBUG |
34 |
|
static uint32 packetno; |
35 |
|
#endif |
36 |
|
|
37 |
/* Initialise an RDP packet */ |
/* Initialise an RDP packet */ |
38 |
static STREAM |
static STREAM |
39 |
rdp_init(int maxlen) |
rdp_init(int maxlen) |
95 |
*type = pdu_type & 0xf; |
*type = pdu_type & 0xf; |
96 |
|
|
97 |
#if WITH_DEBUG |
#if WITH_DEBUG |
98 |
DEBUG(("RDP packet (type %x):\n", *type)); |
DEBUG(("RDP packet #%d, (type %x):\n", ++packetno, *type)); |
99 |
hexdump(next_packet, length); |
hexdump(next_packet, length); |
100 |
#endif /* */ |
#endif /* */ |
101 |
|
|
587 |
bmpdata = xmalloc(width * height * Bpp); |
bmpdata = xmalloc(width * height * Bpp); |
588 |
for (y = 0; y < height; y++) |
for (y = 0; y < height; y++) |
589 |
{ |
{ |
590 |
in_uint8a(s, &bmpdata[(height - y - 1) * (width * Bpp)], width * Bpp); |
in_uint8a(s, &bmpdata[(height - y - 1) * (width * Bpp)], |
591 |
|
width * Bpp); |
592 |
} |
} |
593 |
ui_paint_bitmap(left, top, cx, cy, width, height, bmpdata); |
ui_paint_bitmap(left, top, cx, cy, width, height, bmpdata); |
594 |
xfree(bmpdata); |
xfree(bmpdata); |