Cleanse back-end code of all references to X11 types
[xboard.git] / draw.c
diff --git a/draw.c b/draw.c
index 4e7b6ac..03160f0 100644 (file)
--- a/draw.c
+++ b/draw.c
@@ -74,8 +74,6 @@ extern char *getenv();
 #include <locale.h>
 #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;