region_add: Fix copying wrong rect during smart merge
authorYeshwanth Reddivari <yashu21985@gmail.com>
Tue, 31 Jul 2018 12:29:03 +0000 (07:29 -0500)
committerSangHyeon Jade Lee <sh10233.lee@samsung.com>
Wed, 1 Aug 2018 04:27:58 +0000 (13:27 +0900)
commit6f773790fdbeaaa62dbe8f7427f2e1499131e16e
tree34fa914cca12c4e3f0f03054de67fd9635ec3e6a
parent1d982920521dc69e918993e447506b6d807a7e70
region_add: Fix copying wrong rect during smart merge

Summary:
When testing partial rendering on TV, found this bug.
Probably this was caused because of wrong copy/paste.
When region1 completely subsumes region2, region2 should be ignored.
But currently region2 is copied to region1 which makes region1 rect completly wrong.
This was causing lot of visual defects because of wrong rects.
This patch will fix those visual defects when partial rendering is enabled.

Test Plan: Tested with the patch on TV after enabling partial rendering.

Reviewers: raster, cedric, Hermet, ManMower

Reviewed By: ManMower

Subscribers: bu5hm4n, ajwillia.ms, ManMower, devilhorns, cedric, #committers, zmike

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D6696
src/lib/evas/canvas/render2/region.c