From e36ffb094c6a528931226a044cc418d683c188b7 Mon Sep 17 00:00:00 2001 From: Seunghun Lee Date: Fri, 26 Aug 2022 15:28:39 +0900 Subject: [PATCH] region: Add missing return There is nothing to do except for copy a source to a destination when 1.0 scale given. Change-Id: Id6d5dcfc51763280d46c199c5e93356a74fab898 --- src/region.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/region.c b/src/region.c index 8fca28d..52e62c7 100644 --- a/src/region.c +++ b/src/region.c @@ -124,8 +124,10 @@ ds_region_scale_xy(pixman_region32_t *dst, pixman_region32_t *src, pixman_box32_t *src_rects, *dst_rects; int nrects, i; - if (scale_x == 1.0 && scale_y == 1.0) + if (scale_x == 1.0 && scale_y == 1.0) { pixman_region32_copy(dst, src); + return; + } src_rects = pixman_region32_rectangles(src, &nrects); dst_rects = malloc(nrects * sizeof *dst_rects); -- 2.7.4