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

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

Merge "Remove const_cast to layer handle"

parents e4cc316b 2dd198b9
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;