X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=evalgraph.h;h=9f51fc65e8324d9720006c7dd1622916cb1101e9;hb=87c2133b5e998ff349a7aa2a8eb3026ff958c395;hp=1d4de3df63be43db82c8e1045584f7a389791f20;hpb=e70077aab0199817f37aef9ed0bdba1bbca93b45;p=xboard.git diff --git a/evalgraph.h b/evalgraph.h index 1d4de3d..9f51fc6 100644 --- a/evalgraph.h +++ b/evalgraph.h @@ -21,17 +21,13 @@ * along with this program. If not, see http://www.gnu.org/licenses/. * * *------------------------------------------------------------------------ - ** See the file ChangeLog for a revision history. + ** See the file ChangeLog for a revision history. */ #define MIN_HIST_WIDTH 4 #define MAX_HIST_WIDTH 10 -#define PEN_NONE 0 -#define PEN_BLACK 1 -#define PEN_DOTTED 2 -#define PEN_BLUEDOTTED 3 -#define PEN_BOLD 4 /* or 5 for black */ +enum PEN { PEN_NONE, PEN_BLACK, PEN_DOTTED, PEN_BLUEDOTTED, PEN_BOLDWHITE, PEN_BOLDBLACK, PEN_BACKGD }; #define FILLED 1 #define OPEN 0 @@ -50,7 +46,7 @@ extern int MarginW; extern int MarginH; // calls from back-end part into front-end part -void DrawSegment( int x, int y, int *lastX, int *lastY, int penType ); +void DrawSegment( int x, int y, int *lastX, int *lastY, enum PEN ); void DrawRectangle( int left, int top, int right, int bottom, int side, int style ); void DrawEvalText(char *buf, int cbBuf, int y);