diff options
Diffstat (limited to 'gralloc_gbm.cpp')
-rw-r--r-- | gralloc_gbm.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gralloc_gbm.cpp b/gralloc_gbm.cpp index 7e0dbda..6b7c0b5 100644 --- a/gralloc_gbm.cpp +++ b/gralloc_gbm.cpp @@ -227,8 +227,8 @@ static int gbm_map(struct gralloc_gbm_bo_t *bo, int x, int y, int w, int h, if (enable_write) flags |= GBM_BO_TRANSFER_WRITE; - *addr = gbm_bo_map(bo->bo, x, y, w, h, flags, &stride, &bo->map_data); - ALOGE("mapped bo %p at %p", bo, *addr); + *addr = gbm_bo_map(bo->bo, 0, 0, x + w, y + h, flags, &stride, &bo->map_data); + ALOGE("mapped bo %p (%d, %d)-(%d, %d) at %p", bo, x, y, w, h, *addr); if (*addr == NULL) return -ENOMEM; |