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: Jim Segrave
Subject: Re: [Bug-gnubg] Predefined boards - Windows build 021130
Date: Sun, 1 Dec 2002 00:56:22 +0100
User-agent: Mutt/1.2.5.1i

On Sat 30 Nov 2002 (22:28 +0000), Joern Thyssen wrote:
> On Sat, Nov 30, 2002 at 09:29:11PM +0100, Nardy Pillards wrote
> > Win32 build with predefined boards.
> > 
> > The predefined boards (.xlm) show in Settings / Appearance , tab: Designs
> > (all 4 of them).
> > 
> > But when clicked 'Apply', all is set to black (chequers, board, border,
> > dice, cube) for all 4 designs.
> > 
> > All values: 0, except Hue: -1
> 
> Try changing the code in UseDesign (gtkprefs.c, around line 816):
> 
>   pch = sz = g_strdup ( pbdeSelected->szBoardDesign );
>   outputf ( "board design: '%s'\n" );

Must be:

   outputf ( "board design: '%s'\n", pch);

or you'll probably see it crash

>   while( ParseKeyValue( &sz, apch ) ) {
>     BoardPreferencesParam( &bd, apch[ 0 ], apch[ 1 ] );
 >     outputf ( "'%s' = '%s'\n", apch[ 0 ], apch[ 1 ] );
>   }
>   g_free ( pch );
> 
> This should print out some usable information. The first printf should
> print the lines from the XML file within the <design> tag.
> 
> The second printf should print each keyword-value from the <design> tag.
> For example, 'board' = '#2F5F2f;0.20' etc.
> 
> Maybe this can shed some light on what's going on.
> 
> Jørn
> 
> 
> _______________________________________________
> Bug-gnubg mailing list
> address@hidden
> http://mail.gnu.org/mailman/listinfo/bug-gnubg

-- 
Jim Segrave           address@hidden





reply via email to

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