screen rotation: added variable initialization before getting matrix 23/128023/1 accepted/tizen/unified/20170504.114104 submit/tizen/20170504.070142
authorGwanglim Lee <gl77.lee@samsung.com>
Thu, 4 May 2017 06:09:15 +0000 (15:09 +0900)
committerGwanglim Lee <gl77.lee@samsung.com>
Thu, 4 May 2017 06:09:15 +0000 (15:09 +0900)
Change-Id: I2b4163725f5a1c9817018f2295726d09d880a3d5

src/bin/e_comp_wl.c

index 19801a4e9240f7c787cb00b67e60956434464dd4..7bbae185c59e675d8313dbec58f1c640b2608b27 100644 (file)
@@ -6032,6 +6032,11 @@ e_comp_wl_pos_convert_inverse(int width, int height, int transform, int scale, i
         tw = ((transform % 2) ? height : width) / scale;
         th = ((transform % 2) ? width : height) / scale;
      }
+   else
+     {
+        tw = width;
+        th = height;
+     }
 
    m = _e_comp_wl_buffer_coord_get(tw, th, transform, scale);
    m = e_util_transform_matrix_inverse_get(&m);
@@ -6083,6 +6088,11 @@ e_comp_wl_rect_convert_inverse(int width, int height, int transform, int scale,
         tw = ((transform % 2) ? height : width) / scale;
         th = ((transform % 2) ? width : height) / scale;
      }
+   else
+     {
+        tw = width;
+        th = height;
+     }
 
    m = _e_comp_wl_buffer_coord_get(tw, th, transform, scale);
    m = e_util_transform_matrix_inverse_get(&m);