mirror of
https://github.com/apache/nuttx-apps.git
synced 2025-07-08 12:42:34 +08:00
apps/graphics/pdcurses: Need to set the global COLORS or else all displays on monochrome.
This commit is contained in:
parent
b346d1d6eb
commit
678af717c8
@ -135,7 +135,11 @@ int PDC_scr_open(int argc, char **argv)
|
|||||||
SP = &fbscreen->screen;
|
SP = &fbscreen->screen;
|
||||||
fbstate = &fbscreen->fbstate;
|
fbstate = &fbscreen->fbstate;
|
||||||
|
|
||||||
/* Setup initial colors */
|
/* Number of RGB colors (dimension of rgbcolor[]) */
|
||||||
|
|
||||||
|
COLORS = 16;
|
||||||
|
|
||||||
|
/* Setup initial RGB colors */
|
||||||
|
|
||||||
for (i = 0; i < 8; i++)
|
for (i = 0; i < 8; i++)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user