410 |
out_uint32_le(s, flags); |
out_uint32_le(s, flags); |
411 |
|
|
412 |
/* list */ |
/* list */ |
413 |
out_uint8a(s, idlist + offset * sizeof(BITMAP_ID), |
out_uint8a(s, idlist + offset * sizeof(BITMAP_ID), count * sizeof(BITMAP_ID)); |
|
count * sizeof(BITMAP_ID)); |
|
414 |
|
|
415 |
s_mark_end(s); |
s_mark_end(s); |
416 |
rdp_send_data(s, 0x2b); |
rdp_send_data(s, 0x2b); |
560 |
{ |
{ |
561 |
out_uint32_le(s, BMPCACHE2_C2_CELLS); |
out_uint32_le(s, BMPCACHE2_C2_CELLS); |
562 |
} |
} |
563 |
out_uint8s(s, 20); /* other bitmap caches not used */ |
out_uint8s(s, 20); /* other bitmap caches not used */ |
564 |
} |
} |
565 |
|
|
566 |
/* Output control capability set */ |
/* Output control capability set */ |
651 |
|
|
652 |
/* Output unknown capability sets */ |
/* Output unknown capability sets */ |
653 |
static void |
static void |
654 |
rdp_out_unknown_caps(STREAM s, uint16 id, uint16 length, uint8 *caps) |
rdp_out_unknown_caps(STREAM s, uint16 id, uint16 length, uint8 * caps) |
655 |
{ |
{ |
656 |
out_uint16_le(s, id); |
out_uint16_le(s, id); |
657 |
out_uint16_le(s, length); |
out_uint16_le(s, length); |
671 |
RDP_CAPLEN_BMPCACHE + RDP_CAPLEN_COLCACHE + |
RDP_CAPLEN_BMPCACHE + RDP_CAPLEN_COLCACHE + |
672 |
RDP_CAPLEN_ACTIVATE + RDP_CAPLEN_CONTROL + |
RDP_CAPLEN_ACTIVATE + RDP_CAPLEN_CONTROL + |
673 |
RDP_CAPLEN_POINTER + RDP_CAPLEN_SHARE + |
RDP_CAPLEN_POINTER + RDP_CAPLEN_SHARE + |
674 |
0x58 + 0x08 + 0x08 + 0x34 /* unknown caps */ + |
0x58 + 0x08 + 0x08 + 0x34 /* unknown caps */ + |
675 |
4 /* w2k fix, why? */ ; |
4 /* w2k fix, why? */ ; |
676 |
|
|
677 |
s = sec_init(sec_flags, 6 + 14 + caplen + sizeof(RDP_SOURCE)); |
s = sec_init(sec_flags, 6 + 14 + caplen + sizeof(RDP_SOURCE)); |
699 |
rdp_out_pointer_caps(s); |
rdp_out_pointer_caps(s); |
700 |
rdp_out_share_caps(s); |
rdp_out_share_caps(s); |
701 |
|
|
702 |
rdp_out_unknown_caps(s, 0x0d, 0x58, caps_0x0d); /* international? */ |
rdp_out_unknown_caps(s, 0x0d, 0x58, caps_0x0d); /* international? */ |
703 |
rdp_out_unknown_caps(s, 0x0c, 0x08, caps_0x0c); |
rdp_out_unknown_caps(s, 0x0c, 0x08, caps_0x0c); |
704 |
rdp_out_unknown_caps(s, 0x0e, 0x08, caps_0x0e); |
rdp_out_unknown_caps(s, 0x0e, 0x08, caps_0x0e); |
705 |
rdp_out_unknown_caps(s, 0x10, 0x34, caps_0x10); /* glyph cache? */ |
rdp_out_unknown_caps(s, 0x10, 0x34, caps_0x10); /* glyph cache? */ |
706 |
|
|
707 |
s_mark_end(s); |
s_mark_end(s); |
708 |
sec_send(s, sec_flags); |
sec_send(s, sec_flags); |
709 |
} |
} |
747 |
if (g_width != width || g_height != height) |
if (g_width != width || g_height != height) |
748 |
{ |
{ |
749 |
warning("screen size changed from %dx%d to %dx%d\n", g_width, g_height, |
warning("screen size changed from %dx%d to %dx%d\n", g_width, g_height, |
750 |
width, height); |
width, height); |
751 |
g_width = width; |
g_width = width; |
752 |
g_height = height; |
g_height = height; |
753 |
ui_resize_window(); |
ui_resize_window(); |