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:
Arun Kumar K.R
2013-10-28 19:40:18 -07:00
parent f2feca9bcf
commit 91090c7487
2 changed files with 5 additions and 4 deletions

View File

@@ -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;