diff options
author | Changyeon Lee <cyeon.lee@samsung.com> | 2021-09-06 16:57:06 +0900 |
---|---|---|
committer | Changyeon Lee <cyeon.lee@samsung.com> | 2021-09-06 16:57:12 +0900 |
commit | 2dd879691254ca8ea824a40132707dfcd70bdeb1 (patch) | |
tree | 0ee2b1e553ba250741ecb234360f0b9258ed37d7 | |
parent | c77bce894fed3ed254af6e151570add08e68447c (diff) | |
download | weston-2dd879691254ca8ea824a40132707dfcd70bdeb1.tar.gz weston-2dd879691254ca8ea824a40132707dfcd70bdeb1.tar.bz2 weston-2dd879691254ca8ea824a40132707dfcd70bdeb1.zip |
Fix wrong refresh of head
-rw-r--r-- | libweston/backend-tdm/tdm.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libweston/backend-tdm/tdm.c b/libweston/backend-tdm/tdm.c index 3140ca35..308ed851 100644 --- a/libweston/backend-tdm/tdm.c +++ b/libweston/backend-tdm/tdm.c @@ -759,8 +759,9 @@ tdm_backend_head_update(struct tdm_backend_head *head) mode->tmode = &tmodes[i]; mode->base.flags = 0; mode->base.width = tmodes[i].hdisplay; - mode->base.height = tmodes[i].vdisplay;; - mode->base.refresh = tmodes[i].clock; + mode->base.height = tmodes[i].vdisplay; + /* convert Hz to mHz */ + mode->base.refresh = tmodes[i].vrefresh * 1000; wl_list_insert(&head->mode_list, &mode->head_link); } |