text: fix choosing fallback backend
We didn't correctly choose the fallback backend but instead used the last-registered backend. Fix this. Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
This commit is contained in:
parent
df84e9f217
commit
2652637fb9
@ -180,7 +180,7 @@ int kmscon_text_new(struct kmscon_text **out,
|
||||
ret = -EFAULT;
|
||||
} else {
|
||||
ret = 0;
|
||||
def = kmscon_dlist_entry(text__list.next,
|
||||
def = kmscon_dlist_entry(text__list.prev,
|
||||
struct text_backend,
|
||||
list);
|
||||
if (!backend) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user