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>
main
Tobias Jakobi 2014-06-01 18:04:06 +02:00 committed by Rob Clark
parent 3001c232d1
commit e8c3c1358e
1 changed files with 1 additions and 1 deletions

View File

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