sw_engine: fixing the composition for canvas width != canvas stride
authorMira Grudzinska <m.grudzinska@samsung.com>
Mon, 7 Jun 2021 13:48:52 +0000 (15:48 +0200)
committerHermet Park <chuneon.park@samsung.com>
Fri, 11 Jun 2021 03:40:07 +0000 (12:40 +0900)
commit9d2af8e94549bc88236bca7079bab090a1754b2d
treef539189952d35510289c9f899fa5c341512eb29d
parent726bc7225f03cb9dc047c998eff490dfdfe734aa
sw_engine: fixing the composition for canvas width != canvas stride

When canvas width was smaller than its stride and a composition is used,
the plots were drawn incorrectly. This is fixed by setting the image width
(image from a compositor) to be equal to the surface stride, instead of its width.
The image data are now allocated accordingly the fixed image width.

Change-Id: I9faa3374bf8efb85d7f6c429c41e5fd182982ed9
src/lib/sw_engine/tvgSwRenderer.cpp