Set clip region on the target picture
Setting it on the target buffer picture has no effect. Fix performance problem when using xrender with virtual box. Fixes #40 Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
parent
b18d46bcbd
commit
683cda0b91
|
@ -1871,7 +1871,7 @@ paint_all(session_t *ps, region_t *region, const region_t *region_real, win * co
|
||||||
}
|
}
|
||||||
|
|
||||||
if (BKEND_XRENDER == ps->o.backend) {
|
if (BKEND_XRENDER == ps->o.backend) {
|
||||||
x_set_picture_clip_region(ps, ps->tgt_buffer.pict, 0, 0, region_real);
|
x_set_picture_clip_region(ps, ps->tgt_picture, 0, 0, region_real);
|
||||||
}
|
}
|
||||||
|
|
||||||
region_t reg_tmp, *reg_paint;
|
region_t reg_tmp, *reg_paint;
|
||||||
|
|
Loading…
Reference in New Issue