hwc: handle actionsafe with downscale on ext enabled
during actionsafe calculations, if downscale on ext is enabled, we need to consider the physical display attributes. Change-Id: Ia07218b0b8e47b91b0bf575c66478ebaeab2e2a4 CRs-fixed: 569152
This commit is contained in:
@@ -312,6 +312,12 @@ void getActionSafePosition(hwc_context_t *ctx, int dpy, hwc_rect_t& rect) {
|
|||||||
|
|
||||||
float fbWidth = ctx->dpyAttr[dpy].xres;
|
float fbWidth = ctx->dpyAttr[dpy].xres;
|
||||||
float fbHeight = ctx->dpyAttr[dpy].yres;
|
float fbHeight = ctx->dpyAttr[dpy].yres;
|
||||||
|
if(ctx->dpyAttr[dpy].mDownScaleMode) {
|
||||||
|
// if downscale Mode is enabled for external, need to query
|
||||||
|
// the actual width and height, as that is the physical w & h
|
||||||
|
ctx->mExtDisplay->getAttributes((int&)fbWidth, (int&)fbHeight);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// Since external is rotated 90, need to swap width/height
|
// Since external is rotated 90, need to swap width/height
|
||||||
int extOrient = getExtOrientation(ctx);
|
int extOrient = getExtOrientation(ctx);
|
||||||
|
|||||||
Reference in New Issue
Block a user