hwc: split display: Fix left split default value if not published
If the left split is not published by the driver then the default should be even split. This was missing from the configuration in utils. This is already taken care of in framebuffer configuration and mdp composition. Change-Id: I3db44481fd791809146752ddff56420dcbe89fb4
This commit is contained in:
@@ -288,16 +288,8 @@ bool FBUpdateHighRes::configure(hwc_context_t *ctx,
|
||||
hwc_rect_t displayFrame = layer->displayFrame;
|
||||
|
||||
const float xres = ctx->dpyAttr[mDpy].xres;
|
||||
//Default even split for all displays with high res
|
||||
float lSplit = xres / 2;
|
||||
if(mDpy == HWC_DISPLAY_PRIMARY &&
|
||||
qdutils::MDPVersion::getInstance().getLeftSplit()) {
|
||||
//Override if split published by driver for primary
|
||||
lSplit = qdutils::MDPVersion::getInstance().getLeftSplit();
|
||||
}
|
||||
|
||||
const int lSplit = getLeftSplit(ctx, mDpy);
|
||||
const float lSplitRatio = lSplit / xres;
|
||||
|
||||
const float lCropWidth =
|
||||
(sourceCrop.right - sourceCrop.left) * lSplitRatio;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user