Merge "HWC: Use proper typecast to avoid scaling issues"
This commit is contained in:
committed by
Gerrit - the friendly Code Review server
commit
f11a6a8ed3
@@ -1048,10 +1048,10 @@ void calculate_crop_rects(hwc_rect_t& crop, hwc_rect_t& dst,
|
|||||||
}
|
}
|
||||||
|
|
||||||
calc_cut(leftCutRatio, topCutRatio, rightCutRatio, bottomCutRatio, orient);
|
calc_cut(leftCutRatio, topCutRatio, rightCutRatio, bottomCutRatio, orient);
|
||||||
crop_l += crop_w * leftCutRatio;
|
crop_l += (int)round((double)crop_w * leftCutRatio);
|
||||||
crop_t += crop_h * topCutRatio;
|
crop_t += (int)round((double)crop_h * topCutRatio);
|
||||||
crop_r -= crop_w * rightCutRatio;
|
crop_r -= (int)round((double)crop_w * rightCutRatio);
|
||||||
crop_b -= crop_h * bottomCutRatio;
|
crop_b -= (int)round((double)crop_h * bottomCutRatio);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool areLayersIntersecting(const hwc_layer_1_t* layer1,
|
bool areLayersIntersecting(const hwc_layer_1_t* layer1,
|
||||||
|
|||||||
Reference in New Issue
Block a user