mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-27 06:00:22 +00:00
gl renderer: Apply offset with scale
This commit is contained in:
parent
2831dbb110
commit
79cc8fb261
@ -109,6 +109,7 @@ ops_transform_bounds_modelview (const RenderOpBuilder *builder,
|
||||
const graphene_rect_t *src,
|
||||
graphene_rect_t *dst)
|
||||
{
|
||||
const float scale = ops_get_scale (builder);
|
||||
const MatrixStackEntry *head;
|
||||
|
||||
g_assert (builder->mv_stack != NULL);
|
||||
@ -130,7 +131,7 @@ ops_transform_bounds_modelview (const RenderOpBuilder *builder,
|
||||
dst);
|
||||
}
|
||||
|
||||
graphene_rect_offset (dst, builder->dx, builder->dy);
|
||||
graphene_rect_offset (dst, builder->dx * scale, builder->dy * scale);
|
||||
}
|
||||
|
||||
gboolean
|
||||
|
Loading…
Reference in New Issue
Block a user