[Top][All Lists]
[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 01:24:26 +0100 |
----- Original Message -----
From: "Joern Thyssen" <address@hidden>
To: "Nardy Pillards" <address@hidden>
Cc: "GNUBackgammon bug reporting" <address@hidden>
Sent: Saturday, November 30, 2002 11:28 PM
Subject: Re: [Bug-gnubg] Predefined boards - Windows build 021130
> 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
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)
Nardy