summaryrefslogtreecommitdiff
path: root/exynos
diff options
context:
space:
mode:
authorTobias Jakobi <tjakobi@math.uni-bielefeld.de>2014-06-01 18:04:06 +0200
committerRob Clark <robclark@freedesktop.org>2014-06-20 15:53:01 -0400
commite8c3c1358ecaf4e90f7d43762357ae6f8e2022b6 (patch)
treeb1d293faabbe08444052493fce793c8738339c86 /exynos
parent3001c232d14a07153c36a0722e196041d6536d30 (diff)
downloadlibdrm-e8c3c1358ecaf4e90f7d43762357ae6f8e2022b6.tar.gz
libdrm-e8c3c1358ecaf4e90f7d43762357ae6f8e2022b6.tar.bz2
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,
else {
scale = 1;
scale_x = (double)src_w / (double)dst_w;
- scale_y = (double)src_w / (double)dst_h;
+ scale_y = (double)src_h / (double)dst_h;
}
if (src_x + src_w > src->width)