diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-05-09 19:31:48 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-05-09 19:31:48 +0000 |
commit | d97899b6e2c22b4f33f23a8333a03cd323bcd45e (patch) | |
tree | 3275cf363a5ddb67c70108c4712f8903fb0b958c /NxWidgets/libnxwidgets/src/cnxserver.cxx | |
parent | 0f72f7085182b9038e0037c3b949458ac3306fdc (diff) | |
download | nuttx-d97899b6e2c22b4f33f23a8333a03cd323bcd45e.tar.gz nuttx-d97899b6e2c22b4f33f23a8333a03cd323bcd45e.tar.bz2 nuttx-d97899b6e2c22b4f33f23a8333a03cd323bcd45e.zip |
NxWidgets: Remove modal loops, Add CWindowEventHandler*. NxWM: Add support for full screen applications
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4716 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'NxWidgets/libnxwidgets/src/cnxserver.cxx')
-rw-r--r-- | NxWidgets/libnxwidgets/src/cnxserver.cxx | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/NxWidgets/libnxwidgets/src/cnxserver.cxx b/NxWidgets/libnxwidgets/src/cnxserver.cxx index 69b1c5c4e..dc6316835 100644 --- a/NxWidgets/libnxwidgets/src/cnxserver.cxx +++ b/NxWidgets/libnxwidgets/src/cnxserver.cxx @@ -215,7 +215,7 @@ bool CNxServer::connect(void) // Start the server task gvdbg("NxServer::connect: Starting server task\n"); - serverId = task_create("NX Server", CONFIG_NXWIDGETS_SERVERPRIO, + serverId = TASK_CREATE("NX Server", CONFIG_NXWIDGETS_SERVERPRIO, CONFIG_NXWIDGETS_SERVERSTACK, server, (FAR const char **)0); if (serverId < 0) { @@ -291,7 +291,7 @@ bool CNxServer::connect(void) #ifndef CONFIG_NX_MULTIUSER void CNxServer::disconnect(void) { - /* Close the server */ + // Close the server if (m_hNxServer) { @@ -324,7 +324,7 @@ void CNxServer::disconnect(void) } } - /* Disconnect from the server */ + // Disconnect from the server if (m_hNxServer) { @@ -346,7 +346,7 @@ int CNxServer::server(int argc, char *argv[]) int ret; #if defined(CONFIG_NXWIDGETS_EXTERNINIT) - /* Use external graphics driver initialization */ + // Use external graphics driver initialization dev = up_nxdrvinit(CONFIG_NXWIDGETS_DEVNO); if (!dev) @@ -356,7 +356,7 @@ int CNxServer::server(int argc, char *argv[]) } #elif defined(CONFIG_NX_LCDDRIVER) - /* Initialize the LCD device */ + // Initialize the LCD device ret = up_lcdinitialize(); if (ret < 0) @@ -365,7 +365,7 @@ int CNxServer::server(int argc, char *argv[]) return EXIT_FAILURE; } - /* Get the device instance */ + // Get the device instance dev = up_lcdgetdev(CONFIG_NXWIDGETS_DEVNO); if (!dev) @@ -374,11 +374,11 @@ int CNxServer::server(int argc, char *argv[]) return EXIT_FAILURE; } - /* Turn the LCD on at 75% power */ + // Turn the LCD on at 75% power (void)dev->setpower(dev, ((3*CONFIG_LCD_MAXPOWER + 3)/4)); #else - /* Initialize the frame buffer device */ + // Initialize the frame buffer device ret = up_fbinitialize(); if (ret < 0) @@ -395,7 +395,7 @@ int CNxServer::server(int argc, char *argv[]) } #endif - /* Then start the server */ + // Then start the server ret = nx_run(dev); gvdbg("nx_run returned: %d\n", errno); @@ -436,7 +436,7 @@ FAR void *CNxServer::listener(FAR void *arg) break; } - /* If we received a message, we must be connected */ + // If we received a message, we must be connected if (!This->m_connected) { |