|
|
@ -610,13 +610,13 @@ xrdp_painter_copy(struct xrdp_painter* self,
|
|
|
|
y += dy;
|
|
|
|
y += dy;
|
|
|
|
palette_id = 0;
|
|
|
|
palette_id = 0;
|
|
|
|
j = srcy;
|
|
|
|
j = srcy;
|
|
|
|
while (j < src->height)
|
|
|
|
while (j < (srcy + cy))
|
|
|
|
{
|
|
|
|
{
|
|
|
|
i = srcx;
|
|
|
|
i = srcx;
|
|
|
|
while (i < src->width)
|
|
|
|
while (i < (srcx + cx))
|
|
|
|
{
|
|
|
|
{
|
|
|
|
w = MIN(64, src->width - i);
|
|
|
|
w = MIN(64, (srcx + cx) - i);
|
|
|
|
h = MIN(64, src->height - j);
|
|
|
|
h = MIN(64, (srcy + cy) - j);
|
|
|
|
b = xrdp_bitmap_create(w, h, self->wm->screen->bpp, 0, self->wm);
|
|
|
|
b = xrdp_bitmap_create(w, h, self->wm->screen->bpp, 0, self->wm);
|
|
|
|
xrdp_bitmap_copy_box_with_crc(src, b, i, j, w, h);
|
|
|
|
xrdp_bitmap_copy_box_with_crc(src, b, i, j, w, h);
|
|
|
|
bitmap_id = xrdp_cache_add_bitmap(self->wm->cache, b);
|
|
|
|
bitmap_id = xrdp_cache_add_bitmap(self->wm->cache, b);
|
|
|
|