gl renderer: Apply offset with scale

This commit is contained in:
Timm Bäder 2018-12-02 09:39:55 +01:00
parent 2831dbb110
commit 79cc8fb261

View File

@ -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