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: Joern Thyssen
Subject: Re: [Bug-gnubg] Predefined boards - Windows build 021130
Date: Sat, 30 Nov 2002 22:28:34 +0000
User-agent: Mutt/1.4i

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" );
  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




reply via email to

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