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
parent
3001c232d1
commit
e8c3c1358e
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue