"Image files\0*.bmp\0\0";\r
OPENFILENAME ofn;\r
\r
- safeStrCpy( buf, "" , sizeof( buf)/sizeof( buf[0]) );\r
+ GetDlgItemText( hDlg, i+3, buf, MSG_SIZ );\r
\r
ZeroMemory( &ofn, sizeof(ofn) );\r
\r
}\r
} else\r
if(j == -3) {\r
+ GetDlgItemText( hDlg, i+3, buf, MSG_SIZ );\r
if( BrowseForFolder( _("Choose Folder:"), buf ) ) {\r
SetDlgItemText( hDlg, i+3, buf );\r
}\r
{ 0, 0, 0, NULL, (void*) &appData.useBorder, NULL, NULL, CheckBox, N_("Draw border around board") },\r
{ 0, 0, 32+0, NULL, (void*) &appData.border, NULL, NULL, FileName, N_("Optional border bitmap:") },\r
{ 0, 0, 0, NULL, NULL, NULL, NULL, Label, N_(" Beware: a specified piece font will prevail over piece bitmaps") },\r
- { 0, 0, 0, NULL, (void*) &appData.bitmapDirectory, NULL, NULL, PathName, N_("Directory with piece bitmaps:") },\r
+ { 0, 0, 0, NULL, (void*) &appData.pieceDirectory, NULL, NULL, PathName, N_("Directory with piece bitmaps:") },\r
{ 0, 0, 0, NULL, (void*) &appData.useFont, NULL, NULL, CheckBox, N_("Use piece font") },\r
{ 0, 50, 150, NULL, (void*) &appData.fontPieceSize, "", NULL, Spin, N_("Font size (%):") },\r
{ 0, 0, 0, NULL, (void*) &appData.renderPiecesWithFont, NULL, NULL, TextBox, N_("Font name:") },\r
{\r
int n = NamesToList(firstChessProgramNames, engineList, engineMnemonic, "");\r
autoinc = appData.loadGameIndex < 0 || appData.loadPositionIndex < 0;\r
- twice = FALSE; swiss = appData.tourneyType < 0;\r
+ twice = appData.loadGameIndex == -2 || appData.loadPositionIndex == -2; swiss = appData.tourneyType < 0;\r
tourneyOptions[0].max = n;\r
snprintf(title, MSG_SIZ, _("Tournament and Match Options"));\r
ASSIGN(tfName, appData.tourneyFile[0] ? appData.tourneyFile : MakeName(appData.defName));\r