VNC: Finish initializing the VNC server once we have the NX handle
This commit is contained in:
parent
47c2b3d4a7
commit
8c1534e3ed
@ -50,6 +50,10 @@
|
||||
#include <nuttx/nx/nx.h>
|
||||
#include <nuttx/nx/nxglib.h>
|
||||
|
||||
#ifdef CONFIG_VNCSERVER
|
||||
# include <nuttx/video/vnc.h>
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
* Pre-processor Definitions
|
||||
****************************************************************************/
|
||||
@ -130,6 +134,17 @@ int board_tsc_setup(int minor)
|
||||
goto errout_with_fb;
|
||||
}
|
||||
|
||||
#ifdef CONFIG_VNCSERVER
|
||||
/* Setup the VNC server to support keyboard/mouse inputs */
|
||||
|
||||
ret = vnc_default_fbinitialize(0, g_simtc.hnx);
|
||||
if (ret < 0)
|
||||
{
|
||||
idbg("vnc_default_fbinitialize failed: %d\n", ret);
|
||||
goto errout_with_fb;
|
||||
}
|
||||
#endif
|
||||
|
||||
/* Set the background to the configured background color */
|
||||
|
||||
ivdbg("Set background color=%d\n", CONFIG_EXAMPLES_TOUCHSCREEN_BGCOLOR);
|
||||
|
@ -53,22 +53,6 @@
|
||||
|
||||
#ifdef CONFIG_NX_NXSTART
|
||||
|
||||
/****************************************************************************
|
||||
* Pre-processor Definitions
|
||||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* Private Types
|
||||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* Private Data
|
||||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* Public Data
|
||||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* Private Functions
|
||||
****************************************************************************/
|
||||
|
@ -180,7 +180,7 @@ void vnc_mouseout(FAR void *arg, nxgl_coord_t x, nxgl_coord_t y,
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
/* int vnc_default_fbinitialize(nt display, NXHANDLE handle); */
|
||||
/* int vnc_default_fbinitialize(int display, NXHANDLE handle); */
|
||||
|
||||
#if defined(CONFIG_NX_KBD) && defined(CONFIG_NX_XYINPUT)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user