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

Commit a409e195 authored by Mathias Palmqvist's avatar Mathias Palmqvist Committed by Johan Redestig
Browse files

Use stride for source and target buffers when copybit is enabled.

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


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