gl renderer: care about offset when rendering shadow nodes

This commit is contained in:
Timm Bäder 2018-12-03 17:49:51 +01:00
parent 1e129c1dd2
commit fd47e57e4b

View File

@ -778,6 +778,7 @@ render_offset_node (GskGLRenderer *self,
case GSK_TEXTURE_NODE:
case GSK_COLOR_NODE:
case GSK_COLOR_MATRIX_NODE:
case GSK_SHADOW_NODE:
{
ops_offset (builder, dx, dy);
gsk_gl_renderer_add_render_ops (self, child, builder);
@ -1577,8 +1578,8 @@ render_shadow_node (GskGLRenderer *self,
continue;
}
min_x = shadow_child->bounds.origin.x;
min_y = shadow_child->bounds.origin.y;
min_x = builder->dx + shadow_child->bounds.origin.x;
min_y = builder->dy + shadow_child->bounds.origin.y;
max_x = min_x + shadow_child->bounds.size.width;
max_y = min_y + shadow_child->bounds.size.height;