summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libhwcomposer/drmfb.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libhwcomposer/drmfb.cpp b/libhwcomposer/drmfb.cpp
index a368c10..8905ff6 100644
--- a/libhwcomposer/drmfb.cpp
+++ b/libhwcomposer/drmfb.cpp
@@ -43,7 +43,7 @@ DRMFramebuffer::DRMFramebuffer(int drm_fd, buffer_handle_t handle) :
43 this->height = img_hnd->iHeight; 43 this->height = img_hnd->iHeight;
44 this->format = convert_hal_to_drm_format(img_hnd->iFormat, true); 44 this->format = convert_hal_to_drm_format(img_hnd->iFormat, true);
45 this->bo[0] = gem_handle; 45 this->bo[0] = gem_handle;
46 this->pitches[0] = ALIGN(img_hnd->iWidth, HW_ALIGN) * get_format_bpp(img_hnd->iFormat) >> 3; 46 this->pitches[0] = img_hnd->aiStride[0] * get_format_bpp(img_hnd->iFormat) >> 3;
47 this->offsets[0] = 0; 47 this->offsets[0] = 0;
48 this->drm_fd = drm_fd; 48 this->drm_fd = drm_fd;
49 49