{
STREAM s;
- int length = 10*2 + width*height*3 + 5;
+ int length = 10*2 + width*height*3 + 5 + 3;
s = rdp5_init(length, 1);
+ out_uint8(s, 3); // ??
+ out_uint16_le(s, 0); // length
+
out_uint8(s, 1); // process bitmap update
out_uint16_le(s, 10*2 + width*height*3 + 2); // RDP5 chunk length
out_uint16_le(s, 10*2 + width*height*3); // part length
switch (type)
{
+ case 16 ... 31:
+ // unknown, but looks like some sort of
+ // "count" of how many packets there are
+ printf("Unimplemented RDP5 opcode (count?) %d, skipping\n", type);
+ break;
case 32: { // mouse
listen_on_vnc = 1;
uint16 device_flags, x, y;