evas_tbm: fix typo of image_draw 55/197655/2
authorShinwoo Kim <cinoo.kim@samsung.com>
Tue, 15 Jan 2019 02:50:22 +0000 (11:50 +0900)
committerShinwoo Kim <cinoo.kim@samsung.com>
Tue, 15 Jan 2019 04:36:44 +0000 (04:36 +0000)
commita2c2e0c14ed939cb7988ef438d84584e67de2d45
treeeed2f50627674190c107adf90c82198622eff196
parent07f9f044c85bbf7abb7e56e0a4143c2009c1f894
evas_tbm: fix typo of image_draw

It seems that following commit has a small mistake.

   e35a4dd evas_tbm : support ROI mode (tbm rot, flip, ratio)

The destination geometry should consider object geometry as well as other line
using image_draw under different condition does.

If you have following condition, then you will get unexpected result

   - ratio: 0
   - object geometry: 0, 446, 720, 834
   - fill: -280, 57, 1280, 720
   - imagew, h: 1280, 720

because the destination geometry becomes -280, 57, 1280, 720.

Change-Id: I4c3d010b2e1f9fc5823f896a7fe869c80702de00
src/lib/evas/canvas/evas_object_image.c