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

Commit 500f22d7 authored by Louis Huemiller's avatar Louis Huemiller Committed by Android (Google) Code Review
Browse files

Merge "Remove const_cast to layer handle"

parents a3a1ec93 04048141
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -231,7 +231,7 @@ void Layer::setPerFrameData(hwc_layer_t* hwcl) {
        hwcl->handle = NULL;
        return;
    }
    hwcl->handle = const_cast<native_handle_t*>(buffer->handle);
    hwcl->handle = buffer->handle;
    // TODO: set the crop value properly
    hwcl->sourceCrop.left   = 0;
    hwcl->sourceCrop.top    = 0;