From 86db9e2ce016a8effbeeebef9bfe422b6cc8798d Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Wed, 14 Feb 2024 04:28:52 +0100 Subject: [PATCH] gsk: Use gsk_rect_scale() in more places --- gsk/gl/gskglrenderjob.c | 4 ++-- gsk/gskroundedrect.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gsk/gl/gskglrenderjob.c b/gsk/gl/gskglrenderjob.c index 436b6466a4..22bdbfb5e5 100644 --- a/gsk/gl/gskglrenderjob.c +++ b/gsk/gl/gskglrenderjob.c @@ -4322,7 +4322,7 @@ gsk_gl_render_job_visit_node_with_offscreen (GskGLRenderJob *job, gsk_gl_render_job_push_modelview (job, transform); gsk_transform_unref (transform); gsk_gl_render_job_transform_bounds (job, offscreen->bounds, &viewport); - graphene_rect_scale (&viewport, downscale_x, downscale_y, &viewport); + gsk_rect_scale (&viewport, downscale_x, downscale_y, &viewport); } if (downscale_x == 1) @@ -4416,7 +4416,7 @@ gsk_gl_render_job_visit_node_with_offscreen (GskGLRenderJob *job, float scale_x = flipped_x ? - downscale_x : downscale_x; float scale_y = flipped_y ? - downscale_y : downscale_y; - graphene_rect_scale (&job->current_clip->rect.bounds, scale_x, scale_y, &new_clip.bounds); + gsk_rect_scale (&job->current_clip->rect.bounds, scale_x, scale_y, &new_clip.bounds); rounded_rect_scale_corners (&job->current_clip->rect, &new_clip, scale_x, scale_y); gsk_gl_render_job_push_clip (job, &new_clip); reset_clip = TRUE; diff --git a/gsk/gskroundedrect.c b/gsk/gskroundedrect.c index 2932185c26..30cc177042 100644 --- a/gsk/gskroundedrect.c +++ b/gsk/gskroundedrect.c @@ -308,7 +308,7 @@ gsk_rounded_rect_scale_affine (GskRoundedRect *dest, g_assert (dest != src); - graphene_rect_scale (&src->bounds, scale_x, scale_y, &dest->bounds); + gsk_rect_scale (&src->bounds, scale_x, scale_y, &dest->bounds); graphene_rect_offset (&dest->bounds, dx, dy); scale_x = fabsf (scale_x);