From 3791e370d4adbc91e93ee4ac3561a3a9b71af5a9 Mon Sep 17 00:00:00 2001 From: Derek Foreman Date: Thu, 22 Jun 2023 10:33:36 -0500 Subject: [PATCH] libweston: Fix up the paint node status bitfield Pretty cosmetic right now, but make the ALL_DIRTY only contain set bits, and fix the accidentally sparse bitfield. Signed-off-by: Derek Foreman --- libweston/libweston-internal.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libweston/libweston-internal.h b/libweston/libweston-internal.h index e43f484a0..8cd854131 100644 --- a/libweston/libweston-internal.h +++ b/libweston/libweston-internal.h @@ -506,9 +506,9 @@ weston_compositor_destroy_touch_calibrator(struct weston_compositor *compositor) enum paint_node_status { PAINT_NODE_CLEAN = 0, - PAINT_NODE_OUTPUT_DIRTY = 1 << 1, - PAINT_NODE_VIEW_DIRTY = 1 << 2, - PAINT_NODE_ALL_DIRTY = 0xf, + PAINT_NODE_OUTPUT_DIRTY = 1 << 0, + PAINT_NODE_VIEW_DIRTY = 1 << 1, + PAINT_NODE_ALL_DIRTY = (1 << 2) - 1, }; /**