From 73a10666139a39a1b88105f9dc12a53892378fa1 Mon Sep 17 00:00:00 2001 From: jianglianfang Date: Tue, 16 May 2023 17:52:19 +0800 Subject: [PATCH] vnc_server: set touch.maxpoint to 1 for circbuf_init MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit set touch.maxpoint to 1 in vnc_server.c for circbuf_init,otherwise touch_event will circbuf_overwrite a wrong value. test step:vnc run lvgldemo,test input event Signed-off-by: jianglianfang --- drivers/video/vnc/vnc_server.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/video/vnc/vnc_server.c b/drivers/video/vnc/vnc_server.c index f0d79158f8..0aaeead070 100644 --- a/drivers/video/vnc/vnc_server.c +++ b/drivers/video/vnc/vnc_server.c @@ -125,6 +125,10 @@ static void vnc_reset_session(FAR struct vnc_session_s *session, session->nwhupd = 0; session->change = true; +#ifdef CONFIG_VNCSERVER_TOUCH + session->touch.maxpoint = 1; +#endif + /* Careful not to disturb the keyboard/mouse callouts set by * vnc_fbinitialize(). Client related data left in garbage state. */