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

Commit 04048141 authored by Louis Huemiller's avatar Louis Huemiller
Browse files

Remove const_cast to layer handle

Change-Id: Ica1e089cb56b5f9f46ab87abf735ffe7237fc926
parent 061b6104
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;