|
|
|
@ -696,7 +696,7 @@ static int hw_output_set_screen_scale(struct hw_output_device* dev, int dpy, int
|
|
|
|
|
std::string propertyStr;
|
|
|
|
|
char property[PROPERTY_VALUE_MAX];
|
|
|
|
|
char overscan[128];
|
|
|
|
|
int left,top,right,bottom;
|
|
|
|
|
int left, top, right, bottom;
|
|
|
|
|
|
|
|
|
|
propertyStr = getPropertySuffix(priv, "persist.vendor.overscan.", dpy);
|
|
|
|
|
property_get(propertyStr.c_str(), property, "overscan 100,100,100,100");
|
|
|
|
@ -725,6 +725,14 @@ static int hw_output_set_screen_scale(struct hw_output_device* dev, int dpy, int
|
|
|
|
|
mBaseParameter->set_overscan_info(conn->get_type(), conn->id(), &overscan);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
DrmConnector* mCurConnector = getValidDrmConnector(priv, dpy);
|
|
|
|
|
if (mCurConnector != NULL) {
|
|
|
|
|
DrmCrtc *crtc = priv->drm_->GetCrtcFromConnector(mCurConnector);
|
|
|
|
|
ALOGD("crtc %d: overscan %d,%d,%d,%d", crtc->id(), left, top, right, bottom);
|
|
|
|
|
if (mCurConnector->SetTvMargins(crtc, direction, value))
|
|
|
|
|
return -1;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|