X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=xboard.c;h=311d7f1736163acbcb3f410831694187a887dd01;hb=ad44a402a550a5697a8124b6307235a5d6188a96;hp=def15d8cbbfb0ee7a21e0083305ed7756df5f258;hpb=222c259543a8125e7391106f8a6c0f9d9720efc9;p=xboard.git diff --git a/xboard.c b/xboard.c index def15d8..311d7f1 100644 --- a/xboard.c +++ b/xboard.c @@ -540,6 +540,7 @@ int squareSize, smallLayout = 0, tinyLayout = 0, ICSInputBoxUp = False, askQuestionUp = False, filenameUp = False, promotionUp = False, pmFromX = -1, pmFromY = -1, errorUp = False, errorExitStatus = -1, lineGap, defaultLineGap; +Dimension textHeight; Pixel timerForegroundPixel, timerBackgroundPixel; Pixel buttonForegroundPixel, buttonBackgroundPixel; char *chessDir, *programName, *programVersion, @@ -2314,6 +2315,8 @@ XBoard square size (hint): %d\n\ XtSetArg(args[0], XtNtop, XtChainTop); XtSetArg(args[1], XtNbottom, XtChainTop); XtSetValues(messageWidget, args, 2); + XtSetArg(args[0], XtNheight, &textHeight); // [HGM] get height for use in generic popup + XtGetValues(messageWidget, args, 1); widgetList[j++] = boardWidget = XtCreateWidget("board", widgetClass, formWidget, boardArgs,