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 <liushuai25@xiaomi.com>
This commit is contained in:
liushuai25 2021-11-09 11:24:36 +08:00 committed by Xiang Xiao
parent 421452690b
commit 02ff4a8a59

View File

@ -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)