Skip to content
Snippets Groups Projects
Commit ff68e64e authored by deuce's avatar deuce
Browse files

Move colour macro defines into headers, fix WIN_FAT centering.

parent b7dca23f
No related branches found
No related tags found
No related merge requests found
......@@ -16,6 +16,25 @@
#endif
#endif
enum {
BLACK
,BLUE
,GREEN
,CYAN
,RED
,MAGENTA
,BROWN
,LIGHTGRAY
,DARKGRAY
,LIGHTBLUE
,LIGHTGREEN
,LIGHTCYAN
,LIGHTRED
,LIGHTMAGENTA
,YELLOW
,WHITE
};
enum
{
_NOCURSOR,
......
/* $Id$ */
#include <curses.h>
#include <ncurses.h>
#ifndef ACS_SBSD
#define ACS_SBSD ACS_SBSS
......
......@@ -61,27 +61,6 @@
#define BL_GET (1<<2) /* Get key */
#define BL_PUT (1<<3) /* Put key */
#ifdef __unix__
enum {
BLACK
,BLUE
,GREEN
,CYAN
,RED
,MAGENTA
,BROWN
,LIGHTGRAY
,DARKGRAY
,LIGHTBLUE
,LIGHTGREEN
,LIGHTCYAN
,LIGHTRED
,LIGHTMAGENTA
,YELLOW
,WHITE
};
#endif
#define BLINK 128
static char hclr,lclr,bclr,cclr,lbclr;
......@@ -391,7 +370,7 @@ int ulist(int mode, int left, int top, int width, int *cur, int *bar
if(mode&WIN_FAT) {
s_top=1;
s_left=0;
s_left=2;
s_right=api->scrn_width-3; /* Leave space for the shadow */
s_bottom=api->scrn_len-1; /* Leave one for the shadow */
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment