More NX LCD fixes

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2624 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
patacongo
2010-04-23 03:29:51 +00:00
parent c2f52b4b65
commit 9eaf3e665f
6 changed files with 103 additions and 35 deletions
+1
View File
@@ -41,6 +41,7 @@
#include <stdint.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <ctype.h>
#include <debug.h>
+3 -3
View File
@@ -443,7 +443,7 @@ static inline int nxeg_suinitialize(void)
/* Turn the LCD on at 75% power */
(void)dev->setpower(dev, (3*CONFIG_LCD_MAXPOWER/4));
(void)dev->setpower(dev, ((3*CONFIG_LCD_MAXPOWER + 3)/4));
#else
/* Initialize the frame buffer device */
@@ -715,8 +715,8 @@ int user_start(int argc, char *argv[])
message("user_start: Create window #2\n");
nxeg_initstate(&g_wstate[1], 2, CONFIG_EXAMPLES_NX_COLOR2);
hwnd2 = nxeg_openwindow(&g_nxcb, &g_wstate[1]);
message("user_start: hwnd1=%p\n", hwnd1);
if (!hwnd1)
message("user_start: hwnd2=%p\n", hwnd2);
if (!hwnd2)
{
goto errout_with_hwnd1;
}