apps/graphics/pdcurses: Fix some miscellaneous, harmless typos and standard violations.
This commit is contained in:
parent
2c3042766d
commit
cab8363d44
@ -797,8 +797,10 @@ static void output_test(WINDOW *win)
|
|||||||
static void resize_test(WINDOW *dummy)
|
static void resize_test(WINDOW *dummy)
|
||||||
{
|
{
|
||||||
WINDOW *win1;
|
WINDOW *win1;
|
||||||
int nwidth = 135, nheight = 52;
|
int nwidth = 135;
|
||||||
int owidth = COLS, oheight = LINES;
|
int nheight = 52;
|
||||||
|
int owidth = COLS;
|
||||||
|
int oheight = LINES;
|
||||||
|
|
||||||
savetty();
|
savetty();
|
||||||
|
|
||||||
@ -845,7 +847,8 @@ static void resize_test(WINDOW *dummy)
|
|||||||
|
|
||||||
static void pad_test(WINDOW *dummy)
|
static void pad_test(WINDOW *dummy)
|
||||||
{
|
{
|
||||||
WINDOW *pad, *spad;
|
WINDOW *pad;
|
||||||
|
WINDOW *spad;
|
||||||
|
|
||||||
pad = newpad(50, 100);
|
pad = newpad(50, 100);
|
||||||
wattron(pad, A_REVERSE);
|
wattron(pad, A_REVERSE);
|
||||||
@ -886,7 +889,8 @@ static void clipboard_test(WINDOW *win)
|
|||||||
static const char *text =
|
static const char *text =
|
||||||
"This string placed in clipboard by PDCurses test program, testcurs.";
|
"This string placed in clipboard by PDCurses test program, testcurs.";
|
||||||
char *ptr = NULL;
|
char *ptr = NULL;
|
||||||
long i, length = 0;
|
long length = 0;
|
||||||
|
long i;
|
||||||
|
|
||||||
mvaddstr(1, 1, "This test will display the contents of the system clipboard");
|
mvaddstr(1, 1, "This test will display the contents of the system clipboard");
|
||||||
|
|
||||||
@ -1201,7 +1205,9 @@ int testcurs_main(int argc, char *argv[])
|
|||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
WINDOW *win;
|
WINDOW *win;
|
||||||
int key, old_option = -1, new_option = 0;
|
int key;
|
||||||
|
int old_option = -1;
|
||||||
|
int new_option = 0;
|
||||||
bool quit = false;
|
bool quit = false;
|
||||||
|
|
||||||
#ifdef CONFIG_LIBC_LOCALE
|
#ifdef CONFIG_LIBC_LOCALE
|
||||||
|
@ -117,7 +117,7 @@
|
|||||||
# define PDCURSES_PPB_MASK (PDCURSES_PPB - 1)
|
# define PDCURSES_PPB_MASK (PDCURSES_PPB - 1)
|
||||||
# define PDCURSES_PPB_SHIFT 3
|
# define PDCURSES_PPB_SHIFT 3
|
||||||
# define PDCURSES_INIT_COLOR CONFIG_PDCURSES_BGCOLOR_GREYLEVEL
|
# define PDCURSES_INIT_COLOR CONFIG_PDCURSES_BGCOLOR_GREYLEVEL
|
||||||
# define PDCURSES_MONOCHROME 2
|
# define PDCURSES_MONOCHROME 1
|
||||||
#elif defined(CONFIG_PDCURSES_COLORFMT_Y2)
|
#elif defined(CONFIG_PDCURSES_COLORFMT_Y2)
|
||||||
# define PDCURSES_COLORFMT FB_FMT_Y2
|
# define PDCURSES_COLORFMT FB_FMT_Y2
|
||||||
# define PDCURSES_BPP 2
|
# define PDCURSES_BPP 2
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* apps/graphics/include/curses.h
|
* apps/include/graphics/curses.h
|
||||||
* Public Domain Curses
|
* Public Domain Curses
|
||||||
* $Id: curses.h,v 1.295 2008/07/15 17:13:25 wmcbrine Exp $
|
* $Id: curses.h,v 1.295 2008/07/15 17:13:25 wmcbrine Exp $
|
||||||
*
|
*
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* apps/graphics/include/curses.h
|
* apps/include/graphics/panel.h
|
||||||
* Public Domain Curses -- Panels for PDCurses
|
* Public Domain Curses -- Panels for PDCurses
|
||||||
* $Id: panel.h,v 1.19 2008/07/13 16:08:16 wmcbrine Exp $
|
* $Id: panel.h,v 1.19 2008/07/13 16:08:16 wmcbrine Exp $
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user