Make the bitmap updates _slightly_ more interesting.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Fri, 4 Feb 2005 01:55:37 +0000 (01:55 +0000)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Fri, 4 Feb 2005 01:55:37 +0000 (01:55 +0000)
rdp.c

diff --git a/rdp.c b/rdp.c
index 0958692..f7fac2d 100644 (file)
--- 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