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

Commit 07f66eac authored by Omprakash Dhyade's avatar Omprakash Dhyade Committed by Emilio López
Browse files

frameworks/base/opengl: Change copybit image width to buffer stride

Change copybit image width to buffer stride when copybit is used.

Change-Id: I3a8fca52c015d91fe567e7bb4e7669ce6d8a7d82
CRs-fixed: 251015
parent 755df7c2
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -485,13 +485,13 @@ void egl_window_surface_v2_t::copyBlt(
    copybit_device_t* const copybit = blitengine;
    if (copybit)  {
        copybit_image_t simg;
        simg.w = src->width;
        simg.w = src->stride;
        simg.h = src->height;
        simg.format = src->format;
        simg.handle = const_cast<native_handle_t*>(src->handle);

        copybit_image_t dimg;
        dimg.w = dst->width;
        dimg.w = dst->stride;
        dimg.h = dst->height;
        dimg.format = dst->format;
        dimg.handle = const_cast<native_handle_t*>(dst->handle);