236 |
rdp_out_unistr(s, directory, len_directory); |
rdp_out_unistr(s, directory, len_directory); |
237 |
} else { |
} else { |
238 |
out_uint16_le(s, 0); |
out_uint16_le(s, 0); |
239 |
} |
} |
240 |
out_uint16_le(s, 2); |
out_uint16_le(s, 2); |
241 |
out_uint16_le(s, len_ip+2); // Length of client ip |
out_uint16_le(s, len_ip+2); // Length of client ip |
242 |
rdp_out_unistr(s, "127.0.0.1", len_ip); |
rdp_out_unistr(s, "127.0.0.1", len_ip); |
710 |
if (!compress) |
if (!compress) |
711 |
{ |
{ |
712 |
int y; |
int y; |
713 |
bmpdata = xmalloc(width * height * Bpp); |
bmpdata = (uint8*)xmalloc(width * height * Bpp); |
714 |
for (y = 0; y < height; y++) |
for (y = 0; y < height; y++) |
715 |
{ |
{ |
716 |
in_uint8a(s, &bmpdata[(height - y - 1) * (width * Bpp)], |
in_uint8a(s, &bmpdata[(height - y - 1) * (width * Bpp)], |
733 |
in_uint8s(s, 4); /* line_size, final_size */ |
in_uint8s(s, 4); /* line_size, final_size */ |
734 |
} |
} |
735 |
in_uint8p(s, data, size); |
in_uint8p(s, data, size); |
736 |
bmpdata = xmalloc(width * height * Bpp); |
bmpdata = (uint8*)xmalloc(width * height * Bpp); |
737 |
if (bitmap_decompress(bmpdata, width, height, data, size, Bpp)) |
if (bitmap_decompress(bmpdata, width, height, data, size, Bpp)) |
738 |
{ |
{ |
739 |
ui_paint_bitmap(left, top, cx, cy, width, height, bmpdata); |
ui_paint_bitmap(left, top, cx, cy, width, height, bmpdata); |
760 |
in_uint16_le(s, map.ncolours); |
in_uint16_le(s, map.ncolours); |
761 |
in_uint8s(s, 2); /* pad */ |
in_uint8s(s, 2); /* pad */ |
762 |
|
|
763 |
map.colours = xmalloc(3 * map.ncolours); |
map.colours = (COLOURENTRY*)xmalloc(3 * map.ncolours); |
764 |
|
|
765 |
DEBUG(("PALETTE(c=%d)\n", map.ncolours)); |
DEBUG(("PALETTE(c=%d)\n", map.ncolours)); |
766 |
|
|