hwc: use sourceCropF instead of sourceCrop from hwc_layer_t
- Always use sourceCropF instead of sourceCrop.
- Change it to sourceCropF at places where sourceCrop
used
Change-Id: Ia64050a41a174f3f038c9b88d527d70c2240f2d9
diff --git a/libhwcomposer/hwc_utils.cpp b/libhwcomposer/hwc_utils.cpp
index ee97de5..aa40223 100644
--- a/libhwcomposer/hwc_utils.cpp
+++ b/libhwcomposer/hwc_utils.cpp
@@ -992,7 +992,7 @@
also it avoid hole creation.*/
void deductRect(const hwc_layer_1_t* layer, hwc_rect_t& irect) {
hwc_rect_t& disprect = (hwc_rect_t&)layer->displayFrame;
- hwc_rect_t& srcrect = (hwc_rect_t&)layer->sourceCrop;
+ hwc_rect_t srcrect = integerizeSourceCrop(layer->sourceCropf);
int irect_w = irect.right - irect.left;
int irect_h = irect.bottom - irect.top;