}\r
} else if(appData.autoLogo) {\r
if(ics) { // [HGM] logo: in ICS mode second can be used for ICS\r
- sprintf(buf, "logos\\%s.bmp", appData.icsHost);\r
- cps->programLogo = LoadImage( 0, buf, IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );\r
+ char *opponent = "";\r
+ if(gameMode == IcsPlayingWhite) opponent = gameInfo.black;\r
+ if(gameMode == IcsPlayingBlack) opponent = gameInfo.white;\r
+ sprintf(buf, "logos\\%s\\%s.bmp", appData.icsHost, opponent);\r
+ if(!*opponent || !(cps->programLogo = LoadImage( 0, buf, IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE ))) {\r
+ sprintf(buf, "logos\\%s.bmp", appData.icsHost);\r
+ cps->programLogo = LoadImage( 0, buf, IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );\r
+ }\r
} else\r
if(appData.directory[n] && appData.directory[n][0]) {\r
SetCurrentDirectory(appData.directory[n]);\r