diff options
author | Jim Grandy <jgrandy@authentic8.com> | 2013-07-03 10:45:46 -0700 |
---|---|---|
committer | Jim Grandy <jgrandy@authentic8.com> | 2013-07-26 12:25:01 -0700 |
commit | cac958fc3747979f68330a79ca88f0a0d47d27fd (patch) | |
tree | f882c71a4f1abeb7a656c9171941ab01baab9c20 /libxrdp/xrdp_orders.c | |
parent | 3454e19a12e0274b68051ac9b30800a4cef33da9 (diff) | |
download | xrdp-proprietary-cac958fc3747979f68330a79ca88f0a0d47d27fd.tar.gz xrdp-proprietary-cac958fc3747979f68330a79ca88f0a0d47d27fd.zip |
Hand-apply patches (drawing configuration) from Authentic8 branch: 34b92df f994298 38e2def
Diffstat (limited to 'libxrdp/xrdp_orders.c')
-rw-r--r-- | libxrdp/xrdp_orders.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/libxrdp/xrdp_orders.c b/libxrdp/xrdp_orders.c index 29234173..17e674af 100644 --- a/libxrdp/xrdp_orders.c +++ b/libxrdp/xrdp_orders.c @@ -47,6 +47,11 @@ xrdp_orders_create(struct xrdp_session *session, struct xrdp_rdp *rdp_layer) init_stream(self->out_s, 16384); self->orders_state.clip_right = 1; /* silly rdp right clip */ self->orders_state.clip_bottom = 1; /* silly rdp bottom clip */ + self->rfx_min_pixel = rdp_layer->client_info.rfx_min_pixel; + if (self->rfx_min_pixel == 0) + { + self->rfx_min_pixel = 64 * 32; + } return self; } @@ -2246,7 +2251,9 @@ xrdp_orders_send_as_rfx(struct xrdp_orders *self, return 0; } - if (width * height < 64) + LLOGLN(10, ("width %d height %d rfx_min_pixel %d", width, height, + self->rfx_min_pixel)); + if (width * height < self->rfx_min_pixel) { return 0; } |