diff options
| author | Berke Güzel <wenekar1@gmail.com> | 2026-10-13 15:05:06 +0300 |
|---|---|---|
| committer | Berke Güzel <wenekar1@gmail.com> | 2026-10-13 15:05:06 +0300 |
| commit | 98f0d51157fa2a2b8ccaae54ed4850a88d223d01 (patch) | |
| tree | 90b03d0930986620d95eb0f45c07b96e1331783c /src/common/backend.c | |
| parent | 339e1ad7adb8340732ee856d0f6f0d2c7f1455d1 (diff) | |
Simplify surface state, examples, and library installation
Diffstat (limited to 'src/common/backend.c')
| -rw-r--r-- | src/common/backend.c | 4 |
1 files changed, 1 insertions, 3 deletions
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) |
