aboutsummaryrefslogtreecommitdiffstats
path: root/exynos
diff options
context:
space:
mode:
authorTobias Jakobi2014-06-01 11:04:06 -0500
committerRob Clark2014-06-20 14:53:01 -0500
commite8c3c1358ecaf4e90f7d43762357ae6f8e2022b6 (patch)
treeb1d293faabbe08444052493fce793c8738339c86 /exynos
parent3001c232d14a07153c36a0722e196041d6536d30 (diff)
downloadexternal-libdrm-e8c3c1358ecaf4e90f7d43762357ae6f8e2022b6.tar.gz
external-libdrm-e8c3c1358ecaf4e90f7d43762357ae6f8e2022b6.tar.xz
external-libdrm-e8c3c1358ecaf4e90f7d43762357ae6f8e2022b6.zip
exynos: fix scaling factor computation in g2d_copy_with_scale
When division of source and destination width yields the scaling factor for the x-coordinate, then it should be source/destination _height_ for y. Signed-off-by: Tobias Jakobi <tjakobi@math.uni-bielefeld.de> Signed-off-by: Inki Dae <inki.dae@samsung.com>
Diffstat (limited to 'exynos')
-rw-r--r--exynos/exynos_fimg2d.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/exynos/exynos_fimg2d.c b/exynos/exynos_fimg2d.c
index a5659101..fc281b6e 100644
--- a/exynos/exynos_fimg2d.c
+++ b/exynos/exynos_fimg2d.c
@@ -451,7 +451,7 @@ int g2d_copy_with_scale(struct g2d_context *ctx, struct g2d_image *src,
451 else { 451 else {
452 scale = 1; 452 scale = 1;
453 scale_x = (double)src_w / (double)dst_w; 453 scale_x = (double)src_w / (double)dst_w;
454 scale_y = (double)src_w / (double)dst_h; 454 scale_y = (double)src_h / (double)dst_h;
455 } 455 }
456 456
457 if (src_x + src_w > src->width) 457 if (src_x + src_w > src->width)