X-Git-Url: https://git.sesse.net/?p=rdpsrv;a=blobdiff_plain;f=rdp.c;h=cd2f7c9d9b8e9a313798ebe3f23d05b12a23c711;hp=44c57d4bde5e48374f17af7bbd60522f0e017a41;hb=e3340a110a3b01756b8e67531395a33b40a17d37;hpb=25e5f526c8971bd262449832e036a123317fa314 diff --git a/rdp.c b/rdp.c index 44c57d4..cd2f7c9 100644 --- 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);