diff options
| author | Jay Sorg <jay.sorg@gmail.com> | 2014-03-18 00:07:11 -0700 |
|---|---|---|
| committer | Jay Sorg <jay.sorg@gmail.com> | 2014-03-18 00:07:11 -0700 |
| commit | 6d7e315b0c0a1e56e135614f1e2e96fa19870975 (patch) | |
| tree | 536a8fe4fd25d7c6b615c4350d09f0a114cea293 /xrdp/xrdp_mm.c | |
| parent | 63032b000daeaaeb1eed75abc1c70066c9e02581 (diff) | |
| download | xrdp-proprietary-6d7e315b0c0a1e56e135614f1e2e96fa19870975.tar.gz xrdp-proprietary-6d7e315b0c0a1e56e135614f1e2e96fa19870975.zip | |
work on surface command
Diffstat (limited to 'xrdp/xrdp_mm.c')
| -rw-r--r-- | xrdp/xrdp_mm.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/xrdp/xrdp_mm.c b/xrdp/xrdp_mm.c index daa82c80..10b7234d 100644 --- a/xrdp/xrdp_mm.c +++ b/xrdp/xrdp_mm.c @@ -1980,9 +1980,17 @@ xrdp_mm_check_wait_objs(struct xrdp_mm *self) g_snprintf(text, 255, "/tmp/jj0x%8.8x.jpg", jj); jj++; ii = g_file_open(text); - g_file_write(ii, enc_done->comp_data, enc_done->comp_bytes); + g_file_write(ii, enc_done->comp_pad_data + enc_done->pad_bytes, enc_done->comp_bytes); g_file_close(ii); } + + libxrdp_fastpath_send_surface(self->wm->session, + enc_done->comp_pad_data, + enc_done->pad_bytes, + enc_done->comp_bytes, + 0, 0, 0, 0, 32, 99, 0, 0); + + /* free enc_done */ if (enc_done->last) { @@ -1991,7 +1999,7 @@ xrdp_mm_check_wait_objs(struct xrdp_mm *self) g_free(enc_done->enc->crects); g_free(enc_done->enc); } - g_free(enc_done->comp_data); + g_free(enc_done->comp_pad_data); g_free(enc_done); tc_mutex_lock(self->mutex); enc_done = (XRDP_ENC_DATA_DONE*) |
