From 270a7cb02db88ba0adf8e2afb00b09fe20870788 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kristian=20H=C3=B8gsberg?= Date: Mon, 16 Jul 2012 16:44:16 -0400 Subject: [PATCH] compositor-drm: Follow gbm_bo_get_pitch rename to gbm_bo_get_stride It was always a confusing mis-nomer, fix it while we can. --- src/compositor-drm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/compositor-drm.c b/src/compositor-drm.c index db84557d..afdf4798 100644 --- a/src/compositor-drm.c +++ b/src/compositor-drm.c @@ -212,7 +212,7 @@ drm_fb_get_from_bo(struct gbm_bo *bo, struct drm_output *output) width = gbm_bo_get_width(bo); height = gbm_bo_get_height(bo); - stride = gbm_bo_get_pitch(bo); + stride = gbm_bo_get_stride(bo); handle = gbm_bo_get_handle(bo).u32; ret = drmModeAddFB(compositor->drm.fd, width, height, 24, 32, @@ -593,7 +593,7 @@ drm_output_prepare_overlay_surface(struct weston_output *output_base, format = gbm_bo_get_format(bo); handle = gbm_bo_get_handle(bo).s32; - stride = gbm_bo_get_pitch(bo); + stride = gbm_bo_get_stride(bo); gbm_bo_destroy(bo);