evas/scale_sample: fix mask geometry clamping in scale thread
authorMike Blumenkrantz <zmike@samsung.com>
Mon, 13 May 2019 15:44:18 +0000 (11:44 -0400)
committerJunsuChoi <jsuya.choi@samsung.com>
Thu, 30 May 2019 08:17:50 +0000 (17:17 +0900)
commit315d025f24443102bd7f24704640ef7f73ff7cf2
tree79d22f00b8b037615719ce64465094bc9fa41e48
parent43e9ab6885375b019f456148397ea23173fc3d7b
evas/scale_sample: fix mask geometry clamping in scale thread

Summary:
the 'y' parameter is not relevant here. this clamping exists solely
to avoid reading outside the bounds of the mask, and 'y' is the scanline
at which to begin the masking

subtracting the mask size here does not make sense: we are attempting to clamp
to the size of the mask in order to avoid buffer over-read, so this means that
we are mapping the maximum y coordinate of the mask (mask_y + mask_h) to be
relative to the clipped y coordinate (dst_clip_y)

Depends on D8838

Reviewers: cedric, segfaultxavi

Reviewed By: segfaultxavi

Subscribers: segfaultxavi, #reviewers, #committers

Tags: #efl_rendering

Differential Revision: https://phab.enlightenment.org/D8839
src/lib/evas/common/evas_scale_sample.c