mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-01 23:07:45 +08:00
wayland: Fix build warning (boolean always true)
This commit is contained in:
@@ -255,7 +255,6 @@ static void Wayland_SortOutputs(SDL_VideoData *vid)
|
|||||||
/* Sort the outputs by connector name. */
|
/* Sort the outputs by connector name. */
|
||||||
WAYLAND_wl_list_init(&sorted_list);
|
WAYLAND_wl_list_init(&sorted_list);
|
||||||
wl_list_for_each (c, &vid->output_order, link) {
|
wl_list_for_each (c, &vid->output_order, link) {
|
||||||
if (c->wl_output_name) {
|
|
||||||
wl_list_for_each (d, &vid->output_list, link) {
|
wl_list_for_each (d, &vid->output_list, link) {
|
||||||
if (d->wl_output_name && SDL_strcmp(c->wl_output_name, d->wl_output_name) == 0) {
|
if (d->wl_output_name && SDL_strcmp(c->wl_output_name, d->wl_output_name) == 0) {
|
||||||
/* Remove from the current list and Append the next node to the end of the new list. */
|
/* Remove from the current list and Append the next node to the end of the new list. */
|
||||||
@@ -265,7 +264,6 @@ static void Wayland_SortOutputs(SDL_VideoData *vid)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if (!WAYLAND_wl_list_empty(&vid->output_list)) {
|
if (!WAYLAND_wl_list_empty(&vid->output_list)) {
|
||||||
/* If any displays were omitted during the sort, append them to the new list.
|
/* If any displays were omitted during the sort, append them to the new list.
|
||||||
|
|||||||
Reference in New Issue
Block a user