when the total no of input layers is 2 we end up assigning the cursor
to the overlay plane and fixed that corner case also to assign the
cursor layer to the cursor plane
Jira: IAHWC-74
Test: Tested on Android now no blank image behind the cursor in the fullscreen Video or Image
Signed-off-by: Pallavi G <pallavi.g@intel.com>
// Retrieve cursor layer data.
DisplayPlane *cursor_plane = NULL;
- for (auto j = layer_end - 1; j != layer_begin; j--) {
+ for (auto j = layer_end - 1; j >= layer_begin; j--) {
if (j->GetBuffer()->GetUsage() & kLayerCursor) {
cursor_layer = &(*(j));
// Handle Cursor layer.