diff options
Diffstat (limited to 'src/gbm/main')
-rw-r--r-- | src/gbm/main/gbm.c | 6 | ||||
-rw-r--r-- | src/gbm/main/gbm.h | 2 | ||||
-rw-r--r-- | src/gbm/main/gbmint.h | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/src/gbm/main/gbm.c b/src/gbm/main/gbm.c index 2a83033..c58576d 100644 --- a/src/gbm/main/gbm.c +++ b/src/gbm/main/gbm.c @@ -196,12 +196,12 @@ gbm_bo_get_height(struct gbm_bo *bo) * gbm_bo_create() * * \param bo The buffer object - * \return The stride of the allocated buffer object + * \return The stride of the allocated buffer object in bytes */ GBM_EXPORT uint32_t -gbm_bo_get_pitch(struct gbm_bo *bo) +gbm_bo_get_stride(struct gbm_bo *bo) { - return bo->pitch; + return bo->stride; } /** Get the format of the buffer object diff --git a/src/gbm/main/gbm.h b/src/gbm/main/gbm.h index 52afdf7..9d2a030 100644 --- a/src/gbm/main/gbm.h +++ b/src/gbm/main/gbm.h @@ -244,7 +244,7 @@ uint32_t gbm_bo_get_height(struct gbm_bo *bo); uint32_t -gbm_bo_get_pitch(struct gbm_bo *bo); +gbm_bo_get_stride(struct gbm_bo *bo); uint32_t gbm_bo_get_format(struct gbm_bo *bo); diff --git a/src/gbm/main/gbmint.h b/src/gbm/main/gbmint.h index ab23f0a..a467bea 100644 --- a/src/gbm/main/gbmint.h +++ b/src/gbm/main/gbmint.h @@ -90,7 +90,7 @@ struct gbm_bo { struct gbm_device *gbm; uint32_t width; uint32_t height; - uint32_t pitch; + uint32_t stride; uint32_t format; union gbm_bo_handle handle; void *user_data; |