X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=draw.h;h=3ba9efe0e768550f260d345226667e1cdda1bcc1;hb=67b3a0d7c465522feb67841c7374bf863df19357;hp=a565726831d988dc874b4372bab81b1aa97ea812;hpb=4ca3b41e1ccb5ebfade606202c2084f8e9328978;p=xboard.git diff --git a/draw.h b/draw.h index a565726..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)); @@ -57,7 +59,6 @@ void CreateGCs P((int redo)); void DelayedDrag P((void)); void ReadBitmap P((Pixmap *pm, String name, unsigned char bits[], u_int wreq, u_int hreq)); -cairo_surface_t *GetOutputSurface P((Option *opt, int w, int h)); extern XFontStruct *coordFontStruct, *countFontStruct; extern Font coordFontID, countFontID; @@ -74,6 +75,5 @@ void CreatePNGPieces P((void)); void CreateGrid P((void)); // defined in xoptions.c -void DrawExpose P((Option *opt, int x, int y, int w, int h)); - +void GraphExpose P((Option *opt, int x, int y, int w, int h));