diff options
| author | Jay Sorg <jay.sorg@gmail.com> | 2011-05-08 18:55:31 -0700 |
|---|---|---|
| committer | Jay Sorg <jay.sorg@gmail.com> | 2011-05-08 18:55:31 -0700 |
| commit | bb75ea62b2b6ee9864b1feb9afa0af337fb65dd9 (patch) | |
| tree | 438e95a689c7053e758713dc227c4ecc980b02d5 | |
| parent | 89eb5d03c79047651d43565556e446d79e2c1772 (diff) | |
| download | xrdp-proprietary-bb75ea62b2b6ee9864b1feb9afa0af337fb65dd9.tar.gz xrdp-proprietary-bb75ea62b2b6ee9864b1feb9afa0af337fb65dd9.zip | |
added NewFBSize support
| -rw-r--r-- | vnc/vnc.c | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -621,6 +621,12 @@ lib_framebuffer_update(struct vnc* v) error = v->server_set_cursor(v, x, y, cursor_data, cursor_mask); } } + else if (encoding == 0xffffff21) /* desktop size */ + { + v->mod_width = cx; + v->mod_height = cy; + error = v->server_reset(v, cx, cy, v->mod_bpp); + } else { g_sprintf(text, "error in lib_framebuffer_update encoding = %8.8x", @@ -1060,12 +1066,13 @@ connections", 0); init_stream(s, 8192); out_uint8(s, 2); out_uint8(s, 0); - out_uint16_be(s, 3); + out_uint16_be(s, 4); out_uint32_be(s, 0); /* raw */ out_uint32_be(s, 1); /* copy rect */ out_uint32_be(s, 0xffffff11); /* cursor */ + out_uint32_be(s, 0xffffff21); /* desktop size */ v->server_msg(v, "sending encodings", 0); - error = lib_send(v, s->data, 4 + 3 * 4); + error = lib_send(v, s->data, 4 + 4 * 4); } if (error == 0) { |
