hwc: Initialize padding for copybit

Change-Id: I053431caa114fdc9a09584933b10b4d27d34ec74
CRs-fixed: 324785
This commit is contained in:
Naseer Ahmed
2011-12-14 16:54:25 +05:30
parent 0afa0e42a6
commit 75e2a92af4

View File

@@ -996,6 +996,11 @@ static int drawLayerUsingCopybit(hwc_composer_device_t *dev, hwc_layer_t *layer,
src.format = hnd->format;
src.base = (void *)hnd->base;
src.handle = (native_handle_t *)layer->handle;
src.horiz_padding = src.w - hnd->width;
// Initialize vertical padding to zero for now,
// this needs to change to accomodate vertical stride
// if needed in the future
src.vert_padding = 0;
// Copybit source rect
hwc_rect_t sourceCrop = layer->sourceCrop;