mirror of
https://github.com/team-infusion-developers/android_hardware_samsung.git
synced 2024-11-06 21:55:41 +00:00
hwcomposer: Don't set state to S3C_FB_WIN_STATE_DISABLED
This fixes rendering statusbar icons in Pie when high resolution display setting is set. The height of the statusbar is less than 32 pixels and was therefore not rendered. Change-Id: Ie6283de2cb429f0c0d3ca66bf5d3638639a66f79
This commit is contained in:
parent
a416ce3378
commit
79932c733a
1 changed files with 0 additions and 9 deletions
|
@ -1076,14 +1076,6 @@ static int post_fimd(hwc_context_t *ctx, hwc_display_contents_1_t* contents)
|
|||
ALOGV("alpha not supported on window 0; forcing 255");
|
||||
config[window].plane_alpha = 255;
|
||||
}
|
||||
|
||||
hwc_rect_t crop = integerizeSourceCrop(layer.sourceCropf);
|
||||
if ( (WIDTH(crop) <= 15) ||
|
||||
(HEIGHT(crop) <= 7) ||
|
||||
(WIDTH(layer.displayFrame) <= 31) ||
|
||||
(HEIGHT(layer.displayFrame) <= 31) ) {
|
||||
config[window].state = config->S3C_FB_WIN_STATE_DISABLED;
|
||||
}
|
||||
}
|
||||
memcpy(&win.win_cfg, &config[window], sizeof(struct s3c_fb_win_config));
|
||||
}
|
||||
|
@ -1102,7 +1094,6 @@ static int post_fimd(hwc_context_t *ctx, hwc_display_contents_1_t* contents)
|
|||
return wincfg_err;
|
||||
}
|
||||
|
||||
|
||||
return win_data.fence;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue