From 4beb4f26ef8207f3aaf25950e283c3c171973e6f Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Mon, 8 Jan 2024 10:57:40 +0100 Subject: [PATCH] xwayland/glamor/gbm: use Bool for true/false fields This makes it more obvious what the values mean. Signed-off-by: Simon Ser --- hw/xwayland/xwayland-glamor-gbm.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hw/xwayland/xwayland-glamor-gbm.c b/hw/xwayland/xwayland-glamor-gbm.c index 9442aee02..3b22fcae3 100644 --- a/hw/xwayland/xwayland-glamor-gbm.c +++ b/hw/xwayland/xwayland-glamor-gbm.c @@ -58,10 +58,10 @@ struct xwl_gbm_private { struct gbm_device *gbm; struct wl_drm *drm; int drm_fd; - int fd_render_node; + Bool fd_render_node; Bool drm_authenticated; uint32_t capabilities; - int dmabuf_capable; + Bool dmabuf_capable; Bool glamor_gles; }; @@ -945,7 +945,7 @@ xwl_drm_handle_device(void *data, struct wl_drm *drm, const char *device) } if (drmGetNodeTypeFromFd(xwl_gbm->drm_fd) == DRM_NODE_RENDER) { - xwl_gbm->fd_render_node = 1; + xwl_gbm->fd_render_node = TRUE; xwl_screen->expecting_event--; } else { drmGetMagic(xwl_gbm->drm_fd, &magic);