mirror of
https://github.com/apache/nuttx.git
synced 2026-06-07 01:05:54 +08:00
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:
@@ -41,6 +41,7 @@
|
||||
|
||||
#include <stdint.h>
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <ctype.h>
|
||||
#include <debug.h>
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user