Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 41fc9cbb authored by Amara Venkata Mastan Manoj Kumar's avatar Amara Venkata Mastan Manoj Kumar Committed by Steve Kondik
Browse files

sf: virtual display clean up

  Since HAL allows Virtual devices, remove virtual display id
  check during setup of virtual display.

Change-Id: I6ec93c0f06842b69e6677f05ae8b45fb1f4225f6
parent 4282889c
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -523,8 +523,12 @@ status_t HWComposer::queryDisplayProperties(int disp) {

status_t HWComposer::setVirtualDisplayProperties(int32_t id,
        uint32_t w, uint32_t h, uint32_t format) {
    if (id < VIRTUAL_DISPLAY_ID_BASE || id >= int32_t(mNumDisplays) ||
            !mAllocatedDisplayIDs.hasBit(id)) {
#ifndef QCOM_HARDWARE
    if (id < VIRTUAL_DISPLAY_ID_BASE) {
        return BAD_INDEX;
    }
#endif
    if (id >= int32_t(mNumDisplays) || !mAllocatedDisplayIDs.hasBit(id)) {
        return BAD_INDEX;
    }
    mDisplayData[id].width = w;