xboard.git
9 years agorelease of version 4.4.1 v4.4.1
Arun Persaud [Sat, 31 Oct 2009 17:25:37 +0000 (10:25 -0700)]
release of version 4.4.1

9 years agocleaned up ChangeLog and NEWS
H.G. Muller [Sat, 31 Oct 2009 02:59:23 +0000 (19:59 -0700)]
cleaned up ChangeLog and NEWS

9 years agouse xtell instead of tell in wchat
H.G. Muller [Sat, 31 Oct 2009 03:02:40 +0000 (20:02 -0700)]
use xtell instead of tell in wchat

9 years agoupdated files for a new release, added a shortlog and a diffstat
Arun Persaud [Thu, 29 Oct 2009 05:02:01 +0000 (22:02 -0700)]
updated files for a new release, added a shortlog and a diffstat

9 years agoprevent buffer overflow
H.G. Muller [Thu, 29 Oct 2009 03:35:06 +0000 (20:35 -0700)]
prevent buffer overflow

This is a buffer-size adjustments to prevent the JAWS version from
crashing when it has to read out loud very long comments.

9 years agoFurther copy/paste fixes
Tim Mann [Wed, 28 Oct 2009 09:17:16 +0000 (02:17 -0700)]
Further copy/paste fixes

We needed to implement the XA_TARGETS target in order for more
sophisticated apps to really believe we put anything on the clipboard
they can use.

9 years agoMake copy/paste position and game use clipboard, bug #27810
Tim Mann [Wed, 28 Oct 2009 06:57:25 +0000 (23:57 -0700)]
Make copy/paste position and game use clipboard, bug #27810

Copy actually sets both the clipboard and the selection for
convenience and compatibility with the old way of doing things.  Paste
pastes from the clipboard by default, but the new -pasteSelection
option lets you get back the old behavior of pasting from the
selection.

9 years agoswitch focus to the board after loading a game
H.G. Muller [Tue, 27 Oct 2009 22:44:28 +0000 (15:44 -0700)]
switch focus to the board after loading a game

9 years agofix for bug #27826: fixed autoDisplayComment
H.G. Muller [Tue, 27 Oct 2009 22:32:07 +0000 (15:32 -0700)]
fix for bug #27826: fixed autoDisplayComment

apparently the -autoDisplayComment option was not working,
not even in WinBoard. This patch should fix it,both for WB and XB.
(Unfortunately xboard.c and winboard.c were using a different name
for the same front-end variable I needed, so I had to change one of them.)

9 years agofix for bug #27826: ported two options to xboard
H.G. Muller [Tue, 27 Oct 2009 19:24:56 +0000 (12:24 -0700)]
fix for bug #27826: ported two options to xboard

also updated the documentation

9 years agofixed jaws version
H.G. Muller [Tue, 27 Oct 2009 19:22:36 +0000 (12:22 -0700)]
fixed jaws version

turns out the new mouse handler broke the JAWS patch, as I discarded
the function IsPromotion. I adapted it to call HasPromotionChoice instead.
Also fixed two arnings by removing a no-longer needed debug print.

9 years agoreformated html to be correctly validated
Arun Persaud [Tue, 27 Oct 2009 19:03:02 +0000 (12:03 -0700)]
reformated html to be correctly validated

9 years agoquick fix for "White Mates" in parser.l
H.G. Muller [Tue, 27 Oct 2009 17:33:42 +0000 (10:33 -0700)]
quick fix for "White Mates" in parser.l

9 years agofixed a regression
Arun Persaud [Tue, 27 Oct 2009 17:32:24 +0000 (10:32 -0700)]
fixed a regression

9 years agochanged stderr to debug output, since stderr is closed in winboard
H.G. Muller [Tue, 27 Oct 2009 03:45:15 +0000 (20:45 -0700)]
changed stderr to debug output, since stderr is closed in winboard

9 years agoremoving empty lines from ICS play
H.G. Muller [Tue, 27 Oct 2009 03:42:24 +0000 (20:42 -0700)]
removing empty lines from ICS play

this patch causes removal of spurious prompts during ICS play also if the prompt is preceeded by a number of empty lines (as the board for the opponent move is on FICS).

9 years agoanother bug in VriantSwitch: an unitialized board was printed.
H.G. Muller [Tue, 27 Oct 2009 03:40:00 +0000 (20:40 -0700)]
another bug in VriantSwitch: an unitialized board was printed.

Must have been there a long time, but this time it crashed WinBoard.

9 years agomore work on variant switch
H.G. Muller [Tue, 27 Oct 2009 03:38:37 +0000 (20:38 -0700)]
more work on variant switch

the previous solution to the cosmetic problem of displaying a wrong shuffle
in an ICS game that was observed from the very start unfortunately turned
out to cause a real error in diplaying a stored game through the smoves
command, for variants not using the FIDE setup as standard.

This patch displays the position from before setting up the start position
of the new variant, but does setup boards[0] to the initial position of that
variant. (If this is a wrong shuffle, it is thus ot displayed, and a new board
will immediately be sent from the ICS to correct the shuffle.)

9 years agoforce full redraw in winboard
H.G. Muller [Tue, 27 Oct 2009 03:34:04 +0000 (20:34 -0700)]
force full redraw in winboard

Full redraw is now always forced when highlightMovesWithArrow is on,
rather than only when highlight info is available. (As in drop moves the
latter is invalid, but we must still erase the arrow from the previous move.)

9 years agofix for bug #27790 and 277772.
H.G. Muller [Tue, 27 Oct 2009 03:25:55 +0000 (20:25 -0700)]
fix for bug #27790 and 277772.

Suppressing the display of a wrong shuffle when observing shuffle games from the first move(#27790 bis), and the sounding of the FICS bell on crazyhouse captures (#27772 bis).

9 years agofixed bug related to unsigned char in convert.c
H.G. Muller [Tue, 27 Oct 2009 03:22:13 +0000 (20:22 -0700)]
fixed bug related to unsigned char in convert.c

I also fixed the unsigned-char bug in the convert.c for bitmaps that caused the
129x129 XBoard bitmaps to be defective, and a bug that required fixup with sed
afterwards (so I could use it to create a new m33s.bm)

9 years agounguarded debug printf. added the appropiate if statement
Arun Persaud [Mon, 26 Oct 2009 06:37:48 +0000 (23:37 -0700)]
unguarded debug printf. added the appropiate if statement

9 years agofix for two compiler warnings
H.G. Muller [Mon, 26 Oct 2009 06:31:13 +0000 (23:31 -0700)]
fix for two compiler warnings

9 years agofix for bug #27799: fix for nested-nested-nested variations
H.G. Muller [Mon, 26 Oct 2009 06:29:43 +0000 (23:29 -0700)]
fix for bug #27799: fix for nested-nested-nested variations

9 years agoThe book-probe code forgot to close the book file after opening it.
H.G. Muller [Mon, 26 Oct 2009 06:21:07 +0000 (23:21 -0700)]
The book-probe code forgot to close the book file after opening it.

fixed by adding an fclose at two points.

9 years agoremoved unused v54?.bm bitmaps from resource file
H.G. Muller [Mon, 26 Oct 2009 06:18:18 +0000 (23:18 -0700)]
removed unused v54?.bm bitmaps from resource file

it seems the v54?.bmp bitmaps were actually included in the WinBoard build
(in the resource file), although they were never actually used. So I have
removed their inclusion in the resource file now.

9 years agoreplaced defective bitmaps with copies from 4.2.7
H.G. Muller [Mon, 26 Oct 2009 06:05:30 +0000 (23:05 -0700)]
replaced defective bitmaps with copies from 4.2.7

9 years agoremoved bitmaps files that are not needed any more
H.G. Muller [Mon, 26 Oct 2009 06:02:08 +0000 (23:02 -0700)]
removed bitmaps files that are not needed any more

9 years agofixed some bitmaps
H.G. Muller [Mon, 26 Oct 2009 05:58:34 +0000 (22:58 -0700)]
fixed some bitmaps

9 years agoMerge branch 'master' of git://git.sv.gnu.org/xboard
Arun Persaud [Mon, 26 Oct 2009 05:53:38 +0000 (22:53 -0700)]
Merge branch 'master' of git://git.sv.gnu.org/xboard

9 years agoDrop an obsolete script that was only used to update my personal web site
Tim Mann [Sat, 24 Oct 2009 16:41:39 +0000 (09:41 -0700)]
Drop an obsolete script that was only used to update my personal web site

9 years agoSilence warnings when compiling 64-bit xboard
Tim Mann [Sat, 24 Oct 2009 08:23:29 +0000 (01:23 -0700)]
Silence warnings when compiling 64-bit xboard

Some harmless warnings were caused by 64-bit mode having 32-bit
int but 64-bit long and pointer.  Add casts (etc.) to silence them.
This might require adding a definition of intptr_t (a signed int
type that is the same width as a pointer) on old systems that don't
have it.

9 years agoFix up man page some more
Tim Mann [Sat, 24 Oct 2009 07:56:37 +0000 (00:56 -0700)]
Fix up man page some more

Sigh, the project history was still partly in reverse chronological
order and partly in forward order.  Swapped the order of some
sentences to help straighten it out.  I don't really care about this,
so other project members should feel free to do what they like here,
but the messed-up order was bugging me.

9 years agoFix some issues in the XBoard man page
Tim Mann [Sat, 24 Oct 2009 07:46:20 +0000 (00:46 -0700)]
Fix some issues in the XBoard man page

Correct places where the XBoard man page was calling XBoard
"WinBoard".  Change references to "WinBoard engines" and "WinBoard
protocol" to "XBoard/WinBoard ...".  Update bug reporting guidelines.
Reorganize project history to something more like chronological order
-- it had gotten pretty randomly ordered.

9 years agonew pre-release version; updated version numbers v4.4.1.20091022
Arun Persaud [Fri, 23 Oct 2009 04:45:32 +0000 (21:45 -0700)]
new pre-release version; updated version numbers

9 years agoThis patch adds <Enter> to the characters that cause an automatic switch to the ICS...
H.G. Muller [Fri, 23 Oct 2009 04:33:07 +0000 (21:33 -0700)]
This patch adds <Enter> to the characters that cause an automatic switch to the ICS console when typed to the board window.

9 years agofix to the minor graphics issue contained some typos, as was remarked in the bugs...
H.G. Muller [Fri, 23 Oct 2009 04:31:16 +0000 (21:31 -0700)]
fix to the minor graphics issue contained some typos, as was remarked in the bugs reports

9 years agoimproved mouse handler
H.G. Muller [Fri, 23 Oct 2009 04:30:08 +0000 (21:30 -0700)]
improved mouse handler

The improved mouse handler still needed an extra call to DrawPosition to
work in XBoard.

9 years agoNPS plays and pondering
H.G. Muller [Fri, 23 Oct 2009 04:28:38 +0000 (21:28 -0700)]
NPS plays and pondering

Clock updating did not work correctly in node-based time controls when the
engine was pondering. (It was not really meant for use with pondering. Oh well...)
This patch checks if the engine reporting the node count is indeed thinking
(as opposed to pondering).

9 years agoholdings update and regression fix
H.G. Muller [Fri, 23 Oct 2009 04:25:36 +0000 (21:25 -0700)]
holdings update and regression fix

The holdings-update patch was not yet satisfactory, because FICS seems to send
holdings both before and after the board! And those received before did overwrite
the holdings received after the previous board. I know tried to fix that in a kludgey
way, by hiding a flag in the board that tells if the holdings have already been written
by the ICS or not, and ignore new holdings when they are. (Except in bughouse,
where holdings updates cannot be tied to a particular board and multiple updates
between boards are normal. (I hope?).)

I also undid a regression in my previous fix for the minor graphics problem,
and solved it in a slightly different way to prevent flicker.

9 years agoimproved mouse handler
H.G. Muller [Fri, 23 Oct 2009 04:23:39 +0000 (21:23 -0700)]
improved mouse handler

I improved the mouse handler in a way which will preclude disappearence of pieces
on off-board or ambiguous (in-between squares) drag & drop moves. (As was reported
in the "premove bug?" thread. Also the command-line premove problem reported there
is now fixed, by removing the prefixing.

9 years agofix for bug #8847: moving backward while examining on FICS not reported to engine
H.G. Muller [Fri, 23 Oct 2009 04:18:05 +0000 (21:18 -0700)]
fix for bug #8847: moving backward while examining on FICS not reported to engine

I moved Daniel's code that backs up the engine when a bord with a lower number is received to a place where it is always done in zippy mode, rather than only when the engine is analyzing.

Apart from taking back moves, there was also the case where the
user moves forward by more than one move (usually immediately to
end-of-game). In this case a new movelist is fetched from the ICS
to recover the moves that were skipped. But this assumes that the
engine is at the start of the game and feeds all these moves to the
engine. So the engine had to be reset in this case to stay in sync.

9 years agobetter init for random number generator
H.G. Muller [Fri, 23 Oct 2009 04:16:56 +0000 (21:16 -0700)]
better init for random number generator

9 years agofix for bug #27772: holdings not updated
H.G. Muller [Thu, 22 Oct 2009 06:01:09 +0000 (23:01 -0700)]
fix for bug #27772: holdings not updated

holdings lines from the ICS nor update the holdings of boards[forwardMostMove] in stead of boards[currentMove].

9 years agoallowe parsing / disambiguation of SAN moves like Xe4 in certain situations
H.G. Muller [Thu, 22 Oct 2009 04:32:14 +0000 (21:32 -0700)]
allowe parsing / disambiguation of SAN moves like Xe4 in certain situations

This patch allows parsing / disambiguation of SAN moves like Xe4, if there
is only one wild-card piece X on the board. Moves with wild-card pieces
are now considered illegal if they leave the King in check by a piece of
known gait.

9 years agofixed bug when switching to variantsuper
H.G. Muller [Wed, 21 Oct 2009 02:09:46 +0000 (19:09 -0700)]
fixed bug when switching to variantsuper

9 years agofix for bug #27715: 2 (minor) graphic issues
H.G. Muller [Wed, 21 Oct 2009 02:06:43 +0000 (19:06 -0700)]
fix for bug #27715: 2 (minor) graphic issues

I forced a total redraw when Reset is called from the ICS code in case a
new game is encountered, in the hope it will make the reported
(irreproducible) problem go away. As game switches are not frequent, I
guess there is hardly any downside to this.

9 years agofix for bug #27667: PV line missing in analysis window, part 3
H.G. Muller [Wed, 21 Oct 2009 01:57:17 +0000 (18:57 -0700)]
fix for bug #27667: PV line missing in analysis window, part 3

"3. Wish for Engine state string (right to the icon): Can you add the actual search depth in analyzing mode? A change like "

I also added the requested display of depth of the analysis move in the
EngineOutput window. I guess a similar change could be made to wengineo.c (as this is in the
code they share in common), but no one ever requested that in the 5 years
since Alessandro wrote it. So for now I leave it alone.

9 years agofix for bug #27760: debug printf in backend.c and additional check for variant
H.G. Muller [Wed, 21 Oct 2009 01:52:14 +0000 (18:52 -0700)]
fix for bug #27760: debug printf in backend.c and additional check for variant

9 years agofix for bug #10990: cmail does not seem to support .cmailgames or .cmailaliases
Arun Persaud [Tue, 20 Oct 2009 06:17:46 +0000 (23:17 -0700)]
fix for bug #10990: cmail does not seem to support .cmailgames or .cmailaliases

this is correct, deleted the text out of the documentation that claims we support it

9 years agonew alpha version; first one with new naming scheme v4.4.1.20091019
Arun Persaud [Tue, 20 Oct 2009 01:40:40 +0000 (18:40 -0700)]
new alpha version; first one with new naming scheme

9 years agosmarter analysis of the boards that XBoard receives from an ICS
H.G. Muller [Tue, 20 Oct 2009 01:07:21 +0000 (18:07 -0700)]
smarter analysis of the boards that XBoard receives from an ICS

I added smarter analysis of the boards that XBoard receves from an ICS,
based on board size and piece types in the position, to recognize cases
where the board does not match the current variant, and switch to an
appropriate variant.

9 years agofix for bug #27667: window should be reference to toplevel
H.G. Muller [Tue, 20 Oct 2009 01:04:08 +0000 (18:04 -0700)]
fix for bug #27667: window should be reference to toplevel

The remaining objections of #27667 should be fixed by bringing the
EngineOutput window under control of the TOPLEVEL compile-time switch.

9 years agopartly fix for bug #27715: scaling of menu bar
H.G. Muller [Tue, 20 Oct 2009 01:02:42 +0000 (18:02 -0700)]
partly fix for bug #27715: scaling of menu bar

the menu bar to the left edge of the window.

9 years agofixed bug reported in WB forum: second game of a match would not start when using...
H.G. Muller [Tue, 20 Oct 2009 00:59:43 +0000 (17:59 -0700)]
fixed bug reported in WB forum: second game of a match would not start when using the GUI book

9 years agofix for bug #27751: negative holding counts displayed
H.G. Muller [Tue, 20 Oct 2009 00:57:14 +0000 (17:57 -0700)]
fix for bug #27751: negative holding counts displayed

I put code in the back-end to prevent holdings counts from becoming negative
when a drop move is made from empty holdings. (This can happen when
re-loading ICS bughouse games, as the smoves command fails to fill the holdings.)

9 years agoUpdated compiling instructions.
Eric Mullins [Mon, 19 Oct 2009 02:54:53 +0000 (20:54 -0600)]
Updated compiling instructions.

9 years agoChanges to allow fonts with any charset (such as terminal)
Eric Mullins [Sun, 18 Oct 2009 17:32:55 +0000 (11:32 -0600)]
Changes to allow fonts with any charset (such as terminal)

Affects winboard only.

9 years agoMoved SIGWINCH signal so it can be used...
Eric Mullins [Sat, 17 Oct 2009 05:02:41 +0000 (23:02 -0600)]
Moved SIGWINCH signal so it can be used...

I goofed putting this in StartChildProcess() originally.

9 years agoAdded internal wrapping ability.
Eric Mullins [Sat, 17 Oct 2009 04:54:12 +0000 (22:54 -0600)]
Added internal wrapping ability.

New options:
  -wrapContinuationSequence "foo"  (default: "\\   "
  -useInternalWrap (Winboard default: false, XBoard default: true)

Note: -keepLineBreaksICS if set, prevents wrapping, usurping the
   useInternalWrap setting.  The idea is if you want to keep ICS line
   breaks, then you don't want internal wrapping.  Because of this,
   the new default for keepLineBreaksICS is now false for XBoard.

9 years agofixed segfaul in convert.c used to convert pixmaps
H.G. Muller [Sat, 17 Oct 2009 02:14:34 +0000 (19:14 -0700)]
fixed segfaul in convert.c used to convert pixmaps

9 years agonew mousehandler to correct for premove and promotion popup
H.G. Muller [Fri, 16 Oct 2009 02:46:07 +0000 (19:46 -0700)]
new mousehandler to correct for premove and promotion popup

this is the new mouse handler for XBoard, which should fully implement
premove, including promotion popup, and yet suppress the promotion popup
on illegal moves that are not premoves. It is almost completely moved to
the back-end now, so that WinBoard will be able to use it as well. I just
must hook it up to winboard.c, in particular harmonize the call-backs of
the mouse driver into the front-end for grabbing and releasing pieces for
dragging, to make sure they have the same names and arguments.

9 years agoupdated black fairy pieces
H.G. Muller [Fri, 16 Oct 2009 02:32:55 +0000 (19:32 -0700)]
updated black fairy pieces

here is a set of black fairy pieces with opaque white details, so they have
the same style as the orthodox XBoard pieces.

9 years agoAdjustment to joining to work around server not always including space.
Eric Mullins [Thu, 15 Oct 2009 22:54:51 +0000 (16:54 -0600)]
Adjustment to joining to work around server not always including space.

This patch implements commit 98aa02bda540f17f1f50be00e494efafe439b004
into the updated joining routine.  This issue seems not to be server
variance, but instead the server electing to omit the space between
words when it occurs at exactly your width setting (-1 actually).

This patch makes the joiner add back the space just like the referenced
commit.  Note: this is just a workaround to a server issue-- the joiner
actually joins correctly before this patch.

9 years agoFixed joiner detection, allowing it to work with timeseal
Eric Mullins [Thu, 15 Oct 2009 13:18:42 +0000 (07:18 -0600)]
Fixed joiner detection, allowing it to work with timeseal

When timeseal's buffer fills in the middle of the continuation
sequence, detection fails, and the lines aren't joined.

As a result of this fix, measures intended to bypass joining are
no longer needed, so I removed them.  These utilize server vars
when available to prevent splitting.

9 years agofixed engingeoutput routine
H.G. Muller [Wed, 14 Oct 2009 21:42:37 +0000 (14:42 -0700)]
fixed engingeoutput routine

removed outdated code regarding analysis window

9 years agomoved bitmap to correct location
H.G. Muller [Wed, 14 Oct 2009 21:39:06 +0000 (14:39 -0700)]
moved bitmap to correct location

was misplaced in a previous commit

9 years agofixed wrong number of arguments for EngineOutputPopUp
H.G. Muller [Wed, 14 Oct 2009 21:26:09 +0000 (14:26 -0700)]
fixed wrong number of arguments for EngineOutputPopUp

9 years agonew bitmap converter (including fill option) and new pixmaps
H.G. Muller [Wed, 14 Oct 2009 04:00:27 +0000 (21:00 -0700)]
new bitmap converter (including fill option) and new pixmaps

9 years agoforgot to add these two lines to the last commit
Arun Persaud [Wed, 14 Oct 2009 03:52:40 +0000 (20:52 -0700)]
forgot to add these two lines to the last commit

9 years agoremoved AnalysisPopUp. Use EngineOutputPopUp instead
Arun Persaud [Wed, 14 Oct 2009 03:51:17 +0000 (20:51 -0700)]
removed AnalysisPopUp. Use EngineOutputPopUp instead

this was already in Winboard, copied it to xboard and removed unused code.

9 years agoProper board and holdings size when switching to variants gothic, capablanca, great...
H.G. Muller [Wed, 14 Oct 2009 03:32:32 +0000 (20:32 -0700)]
Proper board and holdings size when switching to variants gothic, capablanca, great and super within an ICS game.

9 years agocleaned up an old #ifdef in zippy
Arun Persaud [Wed, 14 Oct 2009 03:25:13 +0000 (20:25 -0700)]
cleaned up an old #ifdef in zippy

9 years agoneglected this for the auto-width updating in xboard
Eric Mullins [Tue, 13 Oct 2009 01:25:17 +0000 (19:25 -0600)]
neglected this for the auto-width updating in xboard

9 years agoAdded server width adjustment based on client width changes
Eric Mullins [Tue, 13 Oct 2009 01:19:59 +0000 (19:19 -0600)]
Added server width adjustment based on client width changes

9 years agosilence some compiler warnings
Eric Mullins [Tue, 13 Oct 2009 01:14:53 +0000 (19:14 -0600)]
silence some compiler warnings

9 years agoMaintainence to support all compilers.
Eric Mullins [Mon, 12 Oct 2009 00:39:24 +0000 (18:39 -0600)]
Maintainence to support all compilers.

9 years agoAdjusted alternative joining method to obey keepLineBreaksICS
Eric Mullins [Sun, 11 Oct 2009 23:07:27 +0000 (17:07 -0600)]
Adjusted alternative joining method to obey keepLineBreaksICS

9 years agofix for bug #27668: e.p. field still not passed to engine
H.G. Muller [Sun, 11 Oct 2009 21:48:55 +0000 (14:48 -0700)]
fix for bug #27668: e.p. field still not passed to engine

PositionToFEN now takes the e.p. rights from epStatus[moveNr], rather than
calculating it on the spot from moveList[moveNr-1] (which failed on the first move).

9 years agofix for bug #27666: naming of variants
H.G. Muller [Sun, 11 Oct 2009 21:46:14 +0000 (14:46 -0700)]
fix for bug #27666: naming of variants

Variant names "misc/xxx" are recognized as "normal", rather than "xxx"
to not get confused by the board "misc shogi" run by FICS.

9 years agochanged enable menus
H.G. Muller [Sun, 11 Oct 2009 17:14:09 +0000 (10:14 -0700)]
changed enable menus

Put the "Open Chat Window", "Machine Both", and "Engine #N Settings" menu items
in the appropriate enable lists for graying them out wen not applicable.

9 years agoAdded a command-line option -keepLineBreaksICS true/false to control line joining.
H.G. Muller [Sun, 11 Oct 2009 17:13:14 +0000 (10:13 -0700)]
Added a command-line option -keepLineBreaksICS true/false to control line joining.

9 years agoAdded code to prevent unnecessary width updates.
Eric Mullins [Sun, 11 Oct 2009 01:30:23 +0000 (19:30 -0600)]
Added code to prevent unnecessary width updates.

9 years agoTurned off wrap when possible on ICS servers.
Eric Mullins [Sun, 11 Oct 2009 00:34:37 +0000 (18:34 -0600)]
Turned off wrap when possible on ICS servers.

Turning off line wrap prevents splitting lines up using the
continuation sequence "\\   ".  This is desirable when using
timeseal because timeseal's buffer is sometimes too small,
causing it to break lines itself.  These lines can't be joined.

9 years agovsnprintf() must be _vsnprintf() for MSVC
Eric Mullins [Sat, 10 Oct 2009 22:30:56 +0000 (16:30 -0600)]
vsnprintf() must be _vsnprintf() for MSVC

9 years agoadded code to handle initial width update
Eric Mullins [Sat, 10 Oct 2009 22:16:45 +0000 (16:16 -0600)]
added code to handle initial width update

9 years agoAdded width updates to ICS client on font and window size changes
Eric Mullins [Sat, 10 Oct 2009 20:21:12 +0000 (14:21 -0600)]
Added width updates to ICS client on font and window size changes

What still needs to be done is placing an update call after login
to initialize with the correct width.  I didn't see where to put
that.

9 years agoadded ics_printf() and ics_update_width() and utility functions
Eric Mullins [Sat, 10 Oct 2009 20:19:30 +0000 (14:19 -0600)]
added ics_printf() and ics_update_width() and utility functions

9 years agoCleaned up ConsoleWndProc (not complete, see below)
Eric Mullins [Sat, 10 Oct 2009 17:15:50 +0000 (11:15 -0600)]
Cleaned up ConsoleWndProc  (not complete, see below)

Using static variables this way is not appropriate.  I only addressed
hInput and hText in this commit though.  But imagine the WndProc being
used by multiple windows instead of just one, and you can see why
using static variables in this way is wrong.

9 years agoRestructured URL code so it fits better with how winboard is set up.
Eric Mullins [Sat, 10 Oct 2009 17:12:10 +0000 (11:12 -0600)]
Restructured URL code so it fits better with how winboard is set up.

9 years agocleanup: removed "#if 1" statements
Arun Persaud [Sat, 10 Oct 2009 15:57:39 +0000 (08:57 -0700)]
cleanup: removed "#if 1" statements

9 years agocleanup: removed "#if 0" from source
Arun Persaud [Sat, 10 Oct 2009 15:55:21 +0000 (08:55 -0700)]
cleanup: removed "#if 0" from source

a bit of cleanup of the source code

9 years agofix joining of lines split by ICS
H.G. Muller [Sat, 10 Oct 2009 15:34:10 +0000 (08:34 -0700)]
fix joining of lines split by ICS

This patch fixes the joining of lines that were split by an ICS, so that adding
a space at the break point is done only when there was not a space already.
(Some ICS leave a space at the end of the broken line, others do not.)
An extra space would interefere with board12 in Gothic Chess, which is so
long that the ICS breaks it, and the WB parser could not handle a double
space within the board.

9 years agofix for bug #27642: Clock jumps strangely in engine mode
H.G. Muller [Sat, 10 Oct 2009 15:27:55 +0000 (08:27 -0700)]
fix for bug #27642: Clock jumps strangely in engine mode

This moves SwitchClocks() back to after incrementing forwardMostMove,
so that it knows again who has the move (which was broken by the "bare" patch),
and will take the appropriate tick length.

9 years agoremoved test for premove
H.G. Muller [Sat, 10 Oct 2009 15:26:13 +0000 (08:26 -0700)]
removed test for premove

this was added while looking for the premove bug, but is not needed

9 years agoadded URL detection and provided hotlinks in the ICS client
Eric Mullins [Sat, 10 Oct 2009 08:03:45 +0000 (02:03 -0600)]
added URL detection and provided hotlinks in the ICS client

9 years agoreverted winboard.c beofre URL commit to correct whitespace conversion
Eric Mullins [Sat, 10 Oct 2009 08:00:52 +0000 (02:00 -0600)]
reverted winboard.c beofre URL commit to correct whitespace conversion

9 years agoAdded URL detection into the console text window for ICS.
Eric Mullins [Fri, 9 Oct 2009 08:14:22 +0000 (02:14 -0600)]
Added URL detection into the console text window for ICS.

9 years agoadded some comments and formated code
Arun Persaud [Fri, 9 Oct 2009 06:51:06 +0000 (23:51 -0700)]
added some comments and formated code

9 years agofix printing out help message (list of command line options) (tiny change)
Chris Rorvick [Fri, 9 Oct 2009 06:46:52 +0000 (23:46 -0700)]
fix printing out help message (list of command line options) (tiny change)

The postfix increment always resulted in an attempt to print out an
option on the right side regardless of one actually existing. Use
prefix increment to prevent a crash when printing an odd number of
options.