]> git.sesse.net Git - rdpsrv/blobdiff - rdp.c
Parse some input PDUs, and change bitmap outputs to follow the mouse.
[rdpsrv] / rdp.c
diff --git a/rdp.c b/rdp.c
index 44c57d4bde5e48374f17af7bbd60522f0e017a41..cd2f7c9d9b8e9a313798ebe3f23d05b12a23c711 100644 (file)
--- a/rdp.c
+++ b/rdp.c
@@ -148,16 +148,9 @@ rdp_in_unistr(STREAM s, char *string, int len)
        s->p += len;
 }
 
-void rdp_send_bitmap_update(void)
+void rdp_send_bitmap_update(unsigned x, unsigned y)
 {
        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);