summaryrefslogtreecommitdiffstats
path: root/vnc
diff options
context:
space:
mode:
authorjsorg71 <jsorg71>2005-08-24 01:09:33 +0000
committerjsorg71 <jsorg71>2005-08-24 01:09:33 +0000
commit7d891a1bde2f8287f333fda9acc88310d783da73 (patch)
tree5202a565b2bee120ed075a0cac95221b3f1e0427 /vnc
parent1881c8b1b847ef0de1c42f635ee9e10b99b5863e (diff)
downloadxrdp-proprietary-7d891a1bde2f8287f333fda9acc88310d783da73.tar.gz
xrdp-proprietary-7d891a1bde2f8287f333fda9acc88310d783da73.zip
added server_reset(which uses demand_active) for resizing the rdp client
Diffstat (limited to 'vnc')
-rw-r--r--vnc/vnc.c4
-rw-r--r--vnc/vnc.h1
2 files changed, 5 insertions, 0 deletions
diff --git a/vnc/vnc.c b/vnc/vnc.c
index 8f69d6c6..1d90483d 100644
--- a/vnc/vnc.c
+++ b/vnc/vnc.c
@@ -1015,6 +1015,10 @@ lib_mod_connect(struct vnc* v)
}
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);
out_uint8(s, 3);
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;