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
This commit is contained in:
@@ -992,7 +992,7 @@ hwc_rect_t getUnion(const hwc_rect &rect1, const hwc_rect &rect2)
|
||||
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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user