From 365074491242f8c2ddb6cdd387908c20419a6b4a Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Tue, 27 Oct 2009 12:24:56 -0700 Subject: [PATCH] fix for bug #27826: ported two options to xboard also updated the documentation --- xboard.c | 8 ++++++++ xboard.texi | 8 ++++++++ 2 files changed, 16 insertions(+), 0 deletions(-) diff --git a/xboard.c b/xboard.c index 7ce417c..42192a5 100644 --- a/xboard.c +++ b/xboard.c @@ -1416,6 +1416,12 @@ XtResource clientResources[] = { { "useInternalWrap", "useInternalWrap", XtRBoolean, sizeof(Boolean), XtOffset(AppDataPtr, useInternalWrap), XtRImmediate, (XtPointer) True}, + { "autoDisplayTags", "autoDisplayTags", XtRBoolean, + sizeof(Boolean), XtOffset(AppDataPtr, autoDisplayTags), + XtRImmediate, (XtPointer) True}, + { "autoDisplayComment", "autoDisplayComment", XtRBoolean, + sizeof(Boolean), XtOffset(AppDataPtr, autoDisplayComment), + XtRImmediate, (XtPointer) True}, }; XrmOptionDescRec shellOptions[] = { @@ -1788,6 +1794,8 @@ XrmOptionDescRec shellOptions[] = { { "-keepLineBreaksICS", "keepLineBreaksICS", XrmoptionSepArg, NULL }, { "-wrapContinuationSequence", "wrapContinuationSequence", XrmoptionSepArg, NULL }, { "-useInternalWrap", "useInternalWrap", XrmoptionSepArg, NULL }, + { "-autoDisplayTags", "autoDisplayTags", XrmoptionSepArg, NULL }, + { "-autoDisplayComment", "autoDisplayComment", XrmoptionSepArg, NULL }, }; XtActionsRec boardActions[] = { diff --git a/xboard.texi b/xboard.texi index 1fb07e7..5686c70 100644 --- a/xboard.texi +++ b/xboard.texi @@ -2086,6 +2086,14 @@ Sets the Animate Moving menu option. @xref{Options Menu}. Default: true. @cindex -animateSpeed, option Number of milliseconds delay between each animation frame when Animate Moves is on. +@item -autoDisplayComment true/false +@itemx -autoDisplayTags true/false +@cindex -autoDisplayComment, option +@cindex -autoDisplayTags, option +If set to true, these options cause the window with the move comments, +and the window with PGN tags, respectively, to pop up automatically when +such tags or comments are encountered during the replaying a stored or +loaded game. @end table @node Adjudication Options -- 1.7.0.4