summaryrefslogtreecommitdiffstats
path: root/vnc
diff options
context:
space:
mode:
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;