evas/common: improve evas_common_convert_argb_unpremul() computation. 19/38119/2
authorChunEon Park <chuneon.park@samsung.com>
Mon, 6 Apr 2015 12:58:07 +0000 (21:58 +0900)
committerJaehwan Kim <jae.hwan.kim@samsung.com>
Mon, 13 Apr 2015 13:33:21 +0000 (06:33 -0700)
commitde4b8a5c0c6a53bdc2ee351c23418fef7ec93d33
tree37a50968bf15c2c408c13b8c396f0e0c0a0bd3cb
parent5676fde5297287f235bd0d5da59b52272732fd50
evas/common: improve evas_common_convert_argb_unpremul() computation.

prev logic increased the alpha channel by 1 so the unpremul resulted in the color got too diff from the origin.

We can't avoid losing the rest values while dividing values in premul/unpremul()
but this will recover the value better closed to origin value.

Change-Id: I32ab39f3efd89753a697602f53b893107bec9247
Origin: upstream
src/lib/evas/common/evas_convert_color.c