- s = rdp_init_data(11*2 + width*height*3);
- out_uint16_le(s, RDP_UPDATE_BITMAP);
+ int length = 10*2 + width*height*3 + 5;
+
+ s = rdp5_init(length, 1);
+
+ 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
+