bug-gnubg
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-gnubg] Predefined boards - Windows build 021130


From: Nardy Pillards
Subject: Re: [Bug-gnubg] Predefined boards - Windows build 021130
Date: Sun, 1 Dec 2002 16:09:23 +0100

When I change the boards.xml file so that there are no more return
characters, it does work.

(thus:
       <design>board=#2F5F2F;0,20 border=#003F00 translucent=y wood=alder
hinges=y light=150;50 shape=0,5 chequers0=#F12525;0,90;1,50;0,20;3,00
chequers1=#00000B;0,50;1,50;1,00;30,00 dice0=#F12525;0,20;3,00;y
dice1=#00000B;1,00;30,00;y dot0=#A4A4A4 dot1=#A4A4A4 cube=#D7D7D7
points0=#FF5F5F;0,20 points1=#BFBFBF;0,20</design>
gives the default board)

Nardy
----- Original Message -----
From: "Joern Thyssen" <address@hidden>
To: "Nardy Pillards" <address@hidden>
Cc: "GNUBackgammon bug reporting" <address@hidden>
Sent: Sunday, December 01, 2002 10:14 AM
Subject: Re: [Bug-gnubg] Predefined boards - Windows build 021130


> On Sun, Dec 01, 2002 at 01:24:26AM +0100, Nardy Pillards wrote
> >
> > This code in gtkprefs.c now:
> >
> >   pch = sz = g_strdup ( pbdeSelected->szBoardDesign );
> >   printf ( "board design: '%s'\n", pch);
> >   while( ParseKeyValue( &sz, apch ) ) {
> >     BoardPreferencesParam( &bd, apch[ 0 ], apch[ 1 ] );
> >     printf ( "'%s' = '%s'\n", apch[ 0 ], apch[ 1 ] );
> >   }
> >   g_free ( pch );
> >
> > (and -mwindows added to have the DOS-window while gnubg running)
> >
> > result:
> > board design: '
> >       '
> > (no other lines)
>
> Hmm, well, at least that explains why you get all zeroes. The board
> design string should have been the 16 lines from the <design> tag.
>
> The next change:
>
> Add the output line below in ScanCharacters line 1938 in gtkprefs.c:
>
>   parsecontext *ppc = pv;
>   char *sz = g_strndup ( pchIn, cch );
>
>   outputf ( "Scan: %d %d '%s'\n", cch, ppc->aps[ ppc->ips ], sz );
>
>   switch ( ppc->aps[ ppc->ips ] ) {
>
> I've a feeling why might be wrong.
>
> Jørn
>
>
> _______________________________________________
> Bug-gnubg mailing list
> address@hidden
> http://mail.gnu.org/mailman/listinfo/bug-gnubg
>





reply via email to

[Prev in Thread] Current Thread [Next in Thread]