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.
This commit is contained in:
@@ -212,7 +212,7 @@ drm_fb_get_from_bo(struct gbm_bo *bo, struct drm_output *output)
|
|||||||
|
|
||||||
width = gbm_bo_get_width(bo);
|
width = gbm_bo_get_width(bo);
|
||||||
height = gbm_bo_get_height(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;
|
handle = gbm_bo_get_handle(bo).u32;
|
||||||
|
|
||||||
ret = drmModeAddFB(compositor->drm.fd, width, height, 24, 32,
|
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);
|
format = gbm_bo_get_format(bo);
|
||||||
handle = gbm_bo_get_handle(bo).s32;
|
handle = gbm_bo_get_handle(bo).s32;
|
||||||
stride = gbm_bo_get_pitch(bo);
|
stride = gbm_bo_get_stride(bo);
|
||||||
|
|
||||||
gbm_bo_destroy(bo);
|
gbm_bo_destroy(bo);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user