X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=draw.c;h=03160f0905934a4b4963b31859975f26b0f6402d;hb=21a44c336aa8cd16a38f3c682386528c8f112650;hp=4e7b6ac67451f92a67ad06d3246a07e4f38b8335;hpb=447740095b0491c84370083c0ee2bf281aa502bd;p=xboard.git diff --git a/draw.c b/draw.c index 4e7b6ac..03160f0 100644 --- a/draw.c +++ b/draw.c @@ -74,8 +74,6 @@ extern char *getenv(); #include #endif - -// [HGM] bitmaps: put before incuding the bitmaps / pixmaps, to know how many piece types there are. #include "common.h" #include "backend.h" @@ -168,9 +166,8 @@ InitDrawingSizes (BoardSize boardSize, int flags) static int oldWidth, oldHeight; static VariantClass oldVariant; static int oldMono = -1, oldTwoBoards = 0; - extern Widget formWidget; - if(!formWidget) return; + if(!mainOptions[W_BOARD].handle) return; if(oldTwoBoards && !twoBoards) PopDown(DummyDlg); oldTwoBoards = twoBoards;