X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=evalgraph.h;h=ff85c03e678fa0306c464ba1528b0151fedcf785;hb=72f96a2581a9b7b0682e34cbf391d19d834c3d15;hp=1d4de3df63be43db82c8e1045584f7a389791f20;hpb=4bfad947161d93ce1b566093211bd05f368bdffe;p=xboard.git diff --git a/evalgraph.h b/evalgraph.h index 1d4de3d..ff85c03 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 }; #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);