diff options
| author | Jay Sorg <jay.sorg@gmail.com> | 2014-06-29 13:58:54 -0700 |
|---|---|---|
| committer | Jay Sorg <jay.sorg@gmail.com> | 2014-06-29 13:58:54 -0700 |
| commit | 0cabb4a565dc31f20543588c952dca3fff941da1 (patch) | |
| tree | bccc047c28f74183a5282c28493aac588d43caa0 | |
| parent | dfff82f5febc7b9074eb32d6a8a2473bd6c8ec75 (diff) | |
| download | xrdp-proprietary-0cabb4a565dc31f20543588c952dca3fff941da1.tar.gz xrdp-proprietary-0cabb4a565dc31f20543588c952dca3fff941da1.zip | |
32 bpp compress the alpha, leave room for biggest 32 bpp data
| -rw-r--r-- | libxrdp/xrdp_orders.c | 4 | ||||
| -rw-r--r-- | xrdp/xrdp_painter.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/libxrdp/xrdp_orders.c b/libxrdp/xrdp_orders.c index 51eac9ca..7d969514 100644 --- a/libxrdp/xrdp_orders.c +++ b/libxrdp/xrdp_orders.c @@ -2335,7 +2335,7 @@ xrdp_orders_send_bitmap(struct xrdp_orders *self, { lines_sending = xrdp_bitmap32_compress(data, width, height, s, bpp, 16384, - i - 1, temp_s, e, 0x30); + i - 1, temp_s, e, 0x10); } else { @@ -2600,7 +2600,7 @@ xrdp_orders_send_bitmap2(struct xrdp_orders *self, { lines_sending = xrdp_bitmap32_compress(data, width, height, s, bpp, 16384, - i - 1, temp_s, e, 0x30); + i - 1, temp_s, e, 0x10); } else { diff --git a/xrdp/xrdp_painter.c b/xrdp/xrdp_painter.c index 88d69b1d..e47f36ed 100644 --- a/xrdp/xrdp_painter.c +++ b/xrdp/xrdp_painter.c @@ -848,7 +848,7 @@ xrdp_painter_copy(struct xrdp_painter *self, while (i < (srcx + cx)) { w = MIN(64, ((srcx + cx) - i)); - h = MIN(64, ((srcy + cy) - j)); + h = MIN(63, ((srcy + cy) - j)); b = xrdp_bitmap_create(w, h, src->bpp, 0, self->wm); #if 1 xrdp_bitmap_copy_box_with_crc(src, b, i, j, w, h); @@ -883,7 +883,7 @@ xrdp_painter_copy(struct xrdp_painter *self, i += 64; } - j += 64; + j += 63; } xrdp_region_delete(region); |
