hardware/msm7k : Fix centering of low resolution clips
Change-Id: I90825fd77376325fe9427d1a739be4bec13ff1e3 CRs-fixed: 269485
This commit is contained in:
parent
1e95e224d6
commit
6ec5b1553f
@ -412,9 +412,11 @@ bool OverlayControlChannel::setPosition(int x, int y, uint32_t w, uint32_t h) {
|
||||
/* Scaling of upto a max of 8 times supported */
|
||||
if(w >(ov.src_rect.w * HW_OVERLAY_MAGNIFICATION_LIMIT)){
|
||||
w = HW_OVERLAY_MAGNIFICATION_LIMIT * ov.src_rect.w;
|
||||
x = (mFBWidth - w) / 2;
|
||||
}
|
||||
if(h >(ov.src_rect.h * HW_OVERLAY_MAGNIFICATION_LIMIT)) {
|
||||
h = HW_OVERLAY_MAGNIFICATION_LIMIT * ov.src_rect.h;
|
||||
y = (mFBHeight - h) / 2;
|
||||
}
|
||||
ov.dst_rect.x = x;
|
||||
ov.dst_rect.y = y;
|
||||
|
Loading…
Reference in New Issue
Block a user