mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-11 11:20:12 +00:00
gl renderer: care about offset when rendering shadow nodes
This commit is contained in:
parent
1e129c1dd2
commit
fd47e57e4b
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user