sim_lcd: add open & close

The opening and closing of the window has been associated with the opening and closing of fb, but the LCD has not yet been optimized. The window will only open when sim_x11openwindow is called, and similarly, the window will only close when sim_x11closewindow is called.

Signed-off-by: jianglianfang <jianglianfang@xiaomi.com>
This commit is contained in:
jianglianfang
2023-11-09 16:52:30 +08:00
committed by Xiang Xiao
parent 65d736bfc1
commit f4c8a17837
4 changed files with 180 additions and 3 deletions
+5
View File
@@ -268,6 +268,11 @@ struct lcd_dev_s
/* Passthrough unknown ioctl commands. */
int (*ioctl)(FAR struct lcd_dev_s *dev, int cmd, unsigned long arg);
/* open/close window. */
int (*open)(FAR struct lcd_dev_s *dev);
int (*close)(FAR struct lcd_dev_s *dev);
};
/****************************************************************************