diff options
author | Kirill Primak <vyivel@eclair.cafe> | 2022-11-08 18:24:44 +0300 |
---|---|---|
committer | Kirill Primak <vyivel@eclair.cafe> | 2022-11-08 18:24:44 +0300 |
commit | c284700deb99b56388b6c189190948e73a9c0a8e (patch) | |
tree | 18f8f011a4d56e90aa00ede6afc0e83a752e72a3 /render | |
parent | 270914d379bd24aed1f5be219fa3469cc57d9d36 (diff) |
Revert "render/pixman: apply source image cropping"
This reverts commit 9fefeb69d6fc1136cfad7d690e1d7385c058fd72.
It doesn't really crop anything, actually.
Diffstat (limited to 'render')
-rw-r--r-- | render/pixman/renderer.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/render/pixman/renderer.c b/render/pixman/renderer.c index 960f14a3..d7ed3eae 100644 --- a/render/pixman/renderer.c +++ b/render/pixman/renderer.c @@ -260,11 +260,10 @@ static bool pixman_render_subtexture_with_matrix( pixman_image_set_transform(texture->image, &transform); - double x = fbox->x * m[0] + fbox->y * m[1] + 1.0 * m[6]; - double y = fbox->x * m[3] + fbox->y * m[4] + 1.0 * m[7]; - - pixman_image_composite32(PIXMAN_OP_OVER, texture->image, mask, buffer->image, - x, y, 0, 0, 0, 0, renderer->width, renderer->height); + // TODO clip properly with src_x and src_y + pixman_image_composite32(PIXMAN_OP_OVER, texture->image, mask, + buffer->image, 0, 0, 0, 0, 0, 0, renderer->width, + renderer->height); if (texture->buffer != NULL) { wlr_buffer_end_data_ptr_access(texture->buffer); |