#define OUTLINE 1
Boolean cairoAnimate;
Option *currBoard;
-static cairo_surface_t *csBoardWindow;
+cairo_surface_t *csBoardWindow;
static cairo_surface_t *pngPieceImages[2][(int)BlackPawn+4]; // png 256 x 256 images
static cairo_surface_t *pngPieceBitmaps[2][(int)BlackPawn]; // scaled pieces as used
static cairo_surface_t *pngPieceBitmaps2[2][(int)BlackPawn+4]; // scaled pieces in store
}
void
+InitDrawingHandle (Option *opt)
+{
+ csBoardWindow = DRAWABLE(opt);
+}
+
+void
DrawSeekOpen ()
{
- csBoardWindow = (cairo_surface_t *) mainOptions[W_BOARD].choice;
- currBoard = &mainOptions[W_BOARD];
}
void
highlightSquareColor, premoveHighlightColor;
// defined in draw.c
+void InitDrawingHandle P((Option *opt));
void CreateGCs P((int redo));
void NewSurfaces P((void));
void CreateAnyPieces P((void));
#else
clockFontStruct);
#endif
+ InitDrawingHandle(optList + W_BOARD);
+ currBoard = &optList[W_BOARD];
boardWidget = optList[W_BOARD].handle;
menuBarWidget = optList[W_MENU].handle;
dropMenu = optList[W_DROP].handle;