mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-12-16 08:56:26 -05:00
backend/drm: add wlr_drm_connector.backend
This allows the DRM code to have direct access to the wlr_drm_backend without having to go through an upcast via get_drm_backend_from_backend.
This commit is contained in:
parent
87bd718de5
commit
da2a216934
3 changed files with 14 additions and 19 deletions
|
|
@ -25,8 +25,7 @@ static void atomic_begin(struct atomic *atom) {
|
|||
|
||||
static bool atomic_commit(struct atomic *atom,
|
||||
struct wlr_drm_connector *conn, uint32_t flags) {
|
||||
struct wlr_drm_backend *drm =
|
||||
get_drm_backend_from_backend(conn->output.backend);
|
||||
struct wlr_drm_backend *drm = conn->backend;
|
||||
if (atom->failed) {
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue