From: Steinar H. Gunderson Date: Fri, 4 Feb 2005 01:55:37 +0000 (+0000) Subject: Make the bitmap updates _slightly_ more interesting. X-Git-Url: https://git.sesse.net/?p=rdpsrv;a=commitdiff_plain;h=5d9e4292e05cb5d0ee743962391cabad0d788b6a;ds=sidebyside Make the bitmap updates _slightly_ more interesting. --- diff --git a/rdp.c b/rdp.c index 0958692..f7fac2d 100644 --- a/rdp.c +++ b/rdp.c @@ -151,14 +151,21 @@ rdp_in_unistr(STREAM s, char *string, int len) void rdp_send_bitmap_update(void) { STREAM s; + static unsigned int x = 1, y = 1; + + x += 2; + if (x > 300) { + x = 2; + y += 2; + } s = rdp_init_data(11*2 + 2*2*3); out_uint16_le(s, RDP_UPDATE_BITMAP); out_uint16_le(s, 1); // one update - out_uint16_le(s, 1); // left, top, right, bottom - out_uint16_le(s, 2); - out_uint16_le(s, 3); - out_uint16_le(s, 4); + out_uint16_le(s, x); // left, top, right, bottom + out_uint16_le(s, y); + out_uint16_le(s, x+2); + out_uint16_le(s, y+2); out_uint16_le(s, 2); // width, height out_uint16_le(s, 2); out_uint16_le(s, 24); // bpp