photocam: fix image size issue 38/45938/2
authorJaeun Choi <jaeun12.choi@samsung.com>
Wed, 12 Aug 2015 03:02:07 +0000 (12:02 +0900)
committerJaeun Choi <jaeun12.choi@samsung.com>
Wed, 12 Aug 2015 13:16:47 +0000 (22:16 +0900)
commit33203831c48bfa28b8102401370667b4a48c6862
tree3020047299dcf91d3b9ea3d9feadd44b7cb9a2bd
parentbd19cb03daa8340fef70d15c3eb0ad83c8cc3743
photocam: fix image size issue

when photocam needs to fit into the viewport,
it shows original size image for a little while before fitting into the viewport size.
to fix this,
 - calculate image size right before resize
 - resize image only when viewport is bigger than 0 by 0

Change-Id: I042a5ab91352a7d393036e954dff2e00f753d1a2
src/lib/elm_photocam.c