You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2021/11/25 14:00:51 UTC
[incubator-nuttx-apps] branch master updated: fix: fb: set overlay to 0
This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx-apps.git
The following commit(s) were added to refs/heads/master by this push:
new 02ff4a8 fix: fb: set overlay to 0
02ff4a8 is described below
commit 02ff4a8a59457d53fb77cbed37690837c8bf96f2
Author: liushuai25 <li...@xiaomi.com>
AuthorDate: Tue Nov 9 11:24:36 2021 +0800
fix: fb: set overlay to 0
when CONFIG_FB_OVERLAY=y, need set overlay=0,
otherwise the lcd driver doesn't know which
layer to get.
Signed-off-by: liushuai25 <li...@xiaomi.com>
---
examples/fb/fb_main.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/examples/fb/fb_main.c b/examples/fb/fb_main.c
index eb5f614..5852dea 100644
--- a/examples/fb/fb_main.c
+++ b/examples/fb/fb_main.c
@@ -346,6 +346,9 @@ int main(int argc, FAR char *argv[])
return EXIT_FAILURE;
}
+ /* Get the first overlay information */
+
+ state.oinfo.overlay = 0;
ret = ioctl(state.fd, FBIOGET_OVERLAYINFO,
(unsigned long)((uintptr_t)&state.oinfo));
if (ret < 0)