mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-15 14:50:06 +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,
|
const graphene_rect_t *src,
|
||||||
graphene_rect_t *dst)
|
graphene_rect_t *dst)
|
||||||
{
|
{
|
||||||
|
const float scale = ops_get_scale (builder);
|
||||||
const MatrixStackEntry *head;
|
const MatrixStackEntry *head;
|
||||||
|
|
||||||
g_assert (builder->mv_stack != NULL);
|
g_assert (builder->mv_stack != NULL);
|
||||||
@ -130,7 +131,7 @@ ops_transform_bounds_modelview (const RenderOpBuilder *builder,
|
|||||||
dst);
|
dst);
|
||||||
}
|
}
|
||||||
|
|
||||||
graphene_rect_offset (dst, builder->dx, builder->dy);
|
graphene_rect_offset (dst, builder->dx * scale, builder->dy * scale);
|
||||||
}
|
}
|
||||||
|
|
||||||
gboolean
|
gboolean
|
||||||
|
Loading…
Reference in New Issue
Block a user