mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-02 09:01:38 -05:00
Replace list_t with wl_list in wlr_output
Signed-off-by: Heghedus Razvan <heghedus.razvan@gmail.com>
This commit is contained in:
parent
c03e774636
commit
1d716241af
5 changed files with 19 additions and 19 deletions
|
|
@ -782,11 +782,7 @@ void wlr_drm_scan_connectors(struct wlr_drm_backend *drm) {
|
|||
mode->wlr_mode.width, mode->wlr_mode.height,
|
||||
mode->wlr_mode.refresh);
|
||||
|
||||
if (list_add(wlr_conn->output.modes, mode) == -1) {
|
||||
wlr_log_errno(L_ERROR, "Allocation failed");
|
||||
free(mode);
|
||||
continue;
|
||||
}
|
||||
wl_list_insert(&wlr_conn->output.modes, &mode->wlr_mode.link);
|
||||
}
|
||||
|
||||
wlr_conn->state = WLR_DRM_CONN_NEEDS_MODESET;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue