From 7d891a1bde2f8287f333fda9acc88310d783da73 Mon Sep 17 00:00:00 2001 From: jsorg71 Date: Wed, 24 Aug 2005 01:09:33 +0000 Subject: added server_reset(which uses demand_active) for resizing the rdp client --- vnc/vnc.c | 4 ++++ vnc/vnc.h | 1 + 2 files changed, 5 insertions(+) (limited to 'vnc') diff --git a/vnc/vnc.c b/vnc/vnc.c index 8f69d6c6..1d90483d 100644 --- a/vnc/vnc.c +++ b/vnc/vnc.c @@ -1014,6 +1014,10 @@ lib_mod_connect(struct vnc* v) error = lib_send(v, s->data, 4 + 3 * 4); } if (error == 0) + { + error = v->server_reset(v, v->mod_width, v->mod_height, v->mod_bpp); + } + if (error == 0) { /* FrambufferUpdateRequest */ init_stream(s, 8192); diff --git a/vnc/vnc.h b/vnc/vnc.h index 72929050..b4dd237c 100644 --- a/vnc/vnc.h +++ b/vnc/vnc.h @@ -69,6 +69,7 @@ struct vnc int box_left, int box_top, int box_right, int box_bottom, int x, int y, char* data, int data_len); + int (*server_reset)(struct vnc* v, int width, int height, int bpp); /* common */ long handle; /* pointer to self as long */ long wm; -- cgit v1.2.1