apps/graphics/pdcurses: Need to set the global COLORS or else all displays on monochrome.

This commit is contained in:
Gregory Nutt 2017-11-20 15:23:27 -06:00
parent b346d1d6eb
commit 678af717c8

View File

@ -135,7 +135,11 @@ int PDC_scr_open(int argc, char **argv)
SP = &fbscreen->screen;
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++)
{