diff --git a/libhwcomposer/hwcomposer.cpp b/libhwcomposer/hwcomposer.cpp index b8d7815..8d4c8f1 100644 --- a/libhwcomposer/hwcomposer.cpp +++ b/libhwcomposer/hwcomposer.cpp @@ -1358,12 +1358,10 @@ static int drawLayerUsingCopybit(hwc_composer_device_t *dev, hwc_layer_t *layer, genlock_unlock_buffer(hnd); return -1; } - int alignment = 32; - if( HAL_PIXEL_FORMAT_RGB_565 == fbHandle->format ) - alignment = 16; - // Set the copybit source: + + // Set the copybit source: copybit_image_t src; - src.w = ALIGN(hnd->width, alignment); + src.w = hnd->width; src.h = hnd->height; src.format = hnd->format; src.base = (void *)hnd->base; @@ -1390,7 +1388,7 @@ static int drawLayerUsingCopybit(hwc_composer_device_t *dev, hwc_layer_t *layer, // Copybit dst copybit_image_t dst; - dst.w = ALIGN(fbHandle->width,alignment); + dst.w = fbHandle->width; dst.h = fbHandle->height; dst.format = fbHandle->format; dst.base = (void *)fbHandle->base;