screen rotation: added variable initialization before getting matrix
authorGwanglim Lee <gl77.lee@samsung.com>
Thu, 4 May 2017 06:09:15 +0000 (15:09 +0900)
committerBoram Park <boram1288.park@samsung.com>
Tue, 16 May 2017 04:53:46 +0000 (13:53 +0900)
Change-Id: I2b4163725f5a1c9817018f2295726d09d880a3d5

src/bin/e_comp_wl.c

index c06b0a69f1c84fe7e51d72ffa0c1044d49c71fbc..2c8cf59ba01c261c4a7c15504eebf4b59c1bbd19 100644 (file)
@@ -6034,6 +6034,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);
@@ -6085,6 +6090,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);