From 98f0d51157fa2a2b8ccaae54ed4850a88d223d01 Mon Sep 17 00:00:00 2001 From: Berke Güzel Date: Tue, 13 Oct 2026 15:05:06 +0300 Subject: Simplify surface state, examples, and library installation --- src/common/backend.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/common/backend.c') diff --git a/src/common/backend.c b/src/common/backend.c index be06136..3f2143d 100644 --- a/src/common/backend.c +++ b/src/common/backend.c @@ -328,9 +328,7 @@ struct yasl_geometry yasl_surface_geometry(const struct yasl_surface *s) uint32_t yasl_surface_state(const struct yasl_surface *s) { - if (!s || !s->display->ops->surface_state) - return 0; - return s->display->ops->surface_state(s); + return s ? s->state : 0; } struct yasl_timing yasl_surface_timing(const struct yasl_surface *s) -- cgit v1.2.3