e_comp_wl: fixed implicit conversion of float to int 71/205571/1 accepted/tizen/unified/20190508.111125 submit/tizen/20190507.115421
authorGwanglim Lee <gl77.lee@samsung.com>
Tue, 7 May 2019 11:47:01 +0000 (20:47 +0900)
committerGwanglim Lee <gl77.lee@samsung.com>
Tue, 7 May 2019 11:47:01 +0000 (20:47 +0900)
Change-Id: I693e7d575462d5865be4fc34067aea3c3ab2e019

src/bin/e_comp_wl.c

index d8df1b5ea98fd2e64f6928f674a347067bbb0656..96fcbc07ef671ea3e90b4a3e58ccba79f59a5b6e 100644 (file)
@@ -4619,14 +4619,14 @@ _e_comp_wl_output_info_send(E_Comp_Wl_Output *output, struct wl_resource *resour
         // change the configured output resolution and the configured physical size(mm) of the output
         if (output->configured_resolution_w != res_w)
           {
-             phys_w = (float)output->phys_width * (float)(res_w / output->w);
+             phys_w = (int)((float)output->phys_width * (float)(res_w / output->w));
              output->configured_physical_w = phys_w;
              output->configured_resolution_w = res_w;
           }
 
         if (output->configured_resolution_h != res_h)
           {
-             phys_h = (float)output->phys_height * (float)(res_h / output->h);
+             phys_h = (int)((float)output->phys_height * (float)(res_h / output->h));
              output->configured_physical_h = phys_h;
              output->configured_resolution_h = res_h;
           }