evas: bug fix in bmp loader
authorJaeun Choi <jaeun12.choi@samsung.com>
Wed, 30 Nov 2016 02:37:26 +0000 (11:37 +0900)
committerWonki Kim <wonki_.kim@samsung.com>
Mon, 2 Jan 2017 07:23:56 +0000 (16:23 +0900)
commitd3d2d7493cf1d8ffda071e3f170fe58acaad13a6
tree64755fdc47889d52f03d5df42fbfe2e4d324d606
parent042cfc5009fcbf74bee76e72c91297189da3210a
evas: bug fix in bmp loader

when the DIB header is BITMAPINFOHEADER (size 40),
a bitmap file has alpha channel only if the compression method is BI_ALPHABITFIELDS (= 6).
the original code enabled alpha channel when the compression method was BI_RGB (= 0),
which made an opaque bmp image loaded as a transparent one.

@fix

Change-Id: Id175c82294c064d0d87c7f8fa9ccafcda8f84611
src/modules/evas/image_loaders/bmp/evas_image_load_bmp.c