X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=xboard.c;h=719585c21e0ae6d989980ce0e961e13cded81421;hb=02c925e3932929a5eb4e9a2d6d025f383670ebf6;hp=cf6beec5b26a647c27c5eceb95980fd3b0c04ed3;hpb=26897ecf6be30b8ccc64285e1e293ab76df38ab9;p=xboard.git diff --git a/xboard.c b/xboard.c index cf6beec..719585c 100644 --- a/xboard.c +++ b/xboard.c @@ -941,7 +941,7 @@ InitDrawingSizes (BoardSize boardSize, int flags) if(appData.overrideLineGap >= 0) lineGap = appData.overrideLineGap; boardWidth = lineGap + BOARD_WIDTH * (squareSize + lineGap); boardHeight = lineGap + BOARD_HEIGHT * (squareSize + lineGap); -fprintf(debugFP, "BOARD %d x %d\n",boardWidth, boardHeight); + if(boardWidth != oldWidth || boardHeight != oldHeight) { // do resizing stuff only if size actually changed oldWidth = boardWidth; oldHeight = boardHeight; @@ -2315,14 +2315,6 @@ KeyBindingProc (Widget w, XEvent *event, String *prms, Cardinal *nprms) } static void -MenuBarSelect (Widget w, caddr_t addr, caddr_t index) -{ - MenuProc *proc = (MenuProc *) addr; - - (proc)(); -} - -static void MenuEngineSelect (Widget w, caddr_t addr, caddr_t index) { RecentEngineEvent((int) (intptr_t) addr);