From b80a07a436b0211145c915a7d79bf7c41ae891e4 Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Sat, 22 Aug 2009 17:25:58 -0700 Subject: [PATCH] fixed xengineoutput.c, to keep the duplicated code identical to that of wengineo.c. --- xengineoutput.c | 5 +++-- xoptions.c | 17 +++++++++++++++-- 2 files changed, 18 insertions(+), 4 deletions(-) diff --git a/xengineoutput.c b/xengineoutput.c index 77d5bf3..7a0b5bc 100644 --- a/xengineoutput.c +++ b/xengineoutput.c @@ -661,7 +661,7 @@ void EngineOutputUpdate( FrontEndProgramStats * stats ) if( clearMemo ) DoClearMemo(which); /* Update */ - lastDepth[which] = depth; + lastDepth[which] = depth == 1 && ed.nodes == 0 ? 0 : depth; // [HGM] info-line kudge lastForwardMostMove[which] = forwardMostMove; if( ed.pv != 0 && ed.pv[0] == ' ' ) { @@ -917,7 +917,8 @@ static void UpdateControls( EngineOutputData * ed ) sprintf( s_time, "%d:%02d.%02d", time_secs / 60, time_secs % 60, time_cent ); /* Put all together... */ - sprintf( buf, "%3d %s %s\t%s\t", ed->depth, s_score, s_nodes, s_time ); + if(ed->nodes == 0) /*sprintf( buf, "%3d\t \t \t \t", ed->depth );*/ buf[0]=0; else + sprintf( buf, "%3d\t%s\t%s\t%s\t", ed->depth, s_score, s_nodes, s_time ); /* Add PV */ buflen = strlen(buf); diff --git a/xoptions.c b/xoptions.c index 22737c1..b8a8a68 100644 --- a/xoptions.c +++ b/xoptions.c @@ -1065,6 +1065,20 @@ void NewVariantPopUp() b_ok= XtCreateManagedWidget(_(" OK "), commandWidgetClass, form, args, j); XtAddCallback(b_ok, XtNcallback, NewVariantCallback, (XtPointer) 0); + j=0; + XtSetArg(args[j], XtNfromVert, buttonDesc[14].handle); j++; +// XtSetArg(args[j], XtNheight, 70); j++; + XtSetArg(args[j], XtNbottom, XtChainBottom); j++; + XtSetArg(args[j], XtNtop, XtChainBottom); j++; + XtSetArg(args[j], XtNleft, XtChainLeft); j++; + XtSetArg(args[j], XtNright, XtChainRight); j++; + XtSetArg(args[j], XtNlabel, _("WARNING: variants with un-orthodox\n" + "pieces only have built-in bitmaps\n" + "for -boardSize middling, bulky and\n" + "petite, and substitute king or amazon\n" + "for missing bitmaps. (See manual.)")); j++; + XtCreateManagedWidget("warning", labelWidgetClass, form, args, j); + XtRealizeWidget(popup); CatchDeleteWindow(popup, "NewVariantPopDown"); @@ -1724,5 +1738,4 @@ void XXXMenuProc(w, event, prms, nprms) { XXXPopUp(); } -#endif - +#endif \ No newline at end of file -- 1.7.0.4