diff options
author | jsorg71 <jsorg71> | 2005-01-12 00:48:11 +0000 |
---|---|---|
committer | jsorg71 <jsorg71> | 2005-01-12 00:48:11 +0000 |
commit | 1d03bafb9e8ff4cef59b041235a986d6e4ae2fce (patch) | |
tree | f7ad121305b66baf59612fdd54753f29324d25e3 /vnc | |
parent | ff5f2d59b10ca11bc9f5382f94323325dd0045ed (diff) | |
download | xrdp-proprietary-1d03bafb9e8ff4cef59b041235a986d6e4ae2fce.tar.gz xrdp-proprietary-1d03bafb9e8ff4cef59b041235a986d6e4ae2fce.zip |
added bitmap cache
Diffstat (limited to 'vnc')
-rw-r--r-- | vnc/vnc.c | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -22,9 +22,9 @@ #include "vnc.h" -const char* vnc_start_command = +char* vnc_start_command = "su %s -c \"sh ../vnc/startvnc.sh :%d %d %d %d\""; -const char* vnc_stop_command = +char* vnc_stop_command = ""; /******************************************************************************/ @@ -270,6 +270,8 @@ int lib_framebuffer_update(struct vnc* v) } in_uint8s(s, 1); in_uint16_be(s, num_recs); + + v->server_begin_update(v); for (i = 0; i < num_recs; i++) { init_stream(s, 8192); @@ -292,9 +294,7 @@ int lib_framebuffer_update(struct vnc* v) free_stream(s); return 1; } - v->server_begin_update(v); v->server_paint_rect(v, x, y, cx, cy, data); - v->server_end_update(v); g_free(data); } else if (encoding == 1) /* copy rect */ @@ -307,9 +307,7 @@ int lib_framebuffer_update(struct vnc* v) } in_uint16_be(s, srcx); in_uint16_be(s, srcy); - v->server_begin_update(v); v->server_screen_blt(v, x, y, cx, cy, srcx, srcy); - v->server_end_update(v); } else if (encoding == 0xffffff11) /* cursor */ { @@ -342,6 +340,8 @@ int lib_framebuffer_update(struct vnc* v) v->server_set_cursor(v, x, y, cursor_data, cursor_mask); } } + v->server_end_update(v); + /* FrambufferUpdateRequest */ init_stream(s, 8192); out_uint8(s, 3); |