X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=draw.h;h=3ba9efe0e768550f260d345226667e1cdda1bcc1;hb=67b3a0d7c465522feb67841c7374bf863df19357;hp=233c85e4fd241712e44fc6820649b1e9918d7873;hpb=ef69c417ccc6498ba0c13591b4deaa34a9a76ba1;p=xboard.git diff --git a/draw.h b/draw.h index 233c85e..3ba9efe 100644 --- a/draw.h +++ b/draw.h @@ -49,6 +49,8 @@ *------------------------------------------------------------------------ ** See the file ChangeLog for a revision history. */ +#define DRAWABLE(X) ((cairo_surface_t *) ((X)->choice)) + // defined in xboard.c int MakeColors P((void)); void ResizeBoardWindow P((int w, int h, int inhibit)); @@ -61,13 +63,17 @@ void ReadBitmap P((Pixmap *pm, String name, unsigned char bits[], extern XFontStruct *coordFontStruct, *countFontStruct; extern Font coordFontID, countFontID; extern int xScreen; +extern int lineGap, squareSize; extern Pixel lightSquareColor, darkSquareColor, whitePieceColor, blackPieceColor, highlightSquareColor, premoveHighlightColor; // defined in draw.c void CreateGCs P((int redo)); void NewSurfaces P((void)); -int CreateAnyPieces P((void)); +void CreateAnyPieces P((void)); void CreatePNGPieces P((void)); void CreateGrid P((void)); +// defined in xoptions.c +void GraphExpose P((Option *opt, int x, int y, int w, int h)); +