[0.0.8] change data type to calculate ratio correctly 60/98960/1 accepted/tizen/common/20161122.192846 accepted/tizen/ivi/20161122.235925 accepted/tizen/mobile/20161122.235717 accepted/tizen/tv/20161122.235800 accepted/tizen/wearable/20161122.235840 submit/tizen/20161122.044017
authorNAMJEONGYOON <just.nam@samsung.com>
Mon, 21 Nov 2016 08:13:58 +0000 (17:13 +0900)
committerNAMJEONGYOON <just.nam@samsung.com>
Mon, 21 Nov 2016 08:13:58 +0000 (17:13 +0900)
Change-Id: Iaae564ddded79f6505f9d6db7daad23e1a4b2c15

packaging/libmm-evas-renderer.spec
src/mm_evas_renderer.c

index 77aa9c52b37d03bffad1d861eb4ed83c43d29e23..6b653910ddfd3d36a3ef4155f6695bdceec0b402 100644 (file)
@@ -1,6 +1,6 @@
 Name:       libmm-evas-renderer
 Summary:    Multimedia Framework Evas Renderer Library
-Version:    0.0.7
+Version:    0.0.8
 Release:    0
 Group:      Multimedia/Libraries
 License:    Apache-2.0
index e8911b129c34c4705c491880be0c77399265bd2a..c8fec0dc9b6a799d13d6a66a4f21e071b543f11b 100755 (executable)
@@ -868,8 +868,10 @@ static void _mm_evas_renderer_update_geometry(mm_evas_info *evas_info, rect_info
        case DISP_GEO_METHOD_CROPPED_FULL_SCREEN:
                LOGD("cropped full screen mode");
                evas_info->use_ratio = FALSE;
+               float eo_ratio = (float)evas_info->eo_size.w / evas_info->eo_size.h;
+               float video_ratio = (float)evas_info->w / evas_info->h;
                /* compare evas object's ratio with video's */
-               if ((evas_info->eo_size.w / evas_info->eo_size.h) > (evas_info->w / evas_info->h)) {
+               if (eo_ratio > video_ratio) {
                        result->w = evas_info->eo_size.w;
                        result->h = evas_info->eo_size.w * evas_info->h / evas_info->w;
                        result->y = -(result->h - evas_info->eo_size.h) / 2;