Display new user logo when username is entered
authorH.G.Muller <hgm@hgm-xboard.(none)>
Tue, 24 Nov 2015 19:10:27 +0000 (20:10 +0100)
committerH.G.Muller <hgm@hgm-xboard.(none)>
Tue, 24 Nov 2015 19:10:27 +0000 (20:10 +0100)
When the Edit->Enter Username type-in was used, a new user logo was
loaded, but not immediately displayed. While the old user logo could
already be up, during a man-machine game. Now it is also immediately
displayed.

winboard/winboard.c

index 4f3b4c2..5b57ba3 100644 (file)
@@ -6726,7 +6726,7 @@ TypeInNameDialog(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
     case IDOK:\r
       GetDlgItemText(hDlg, OPT_Name, move, sizeof(move));\r
       appData.userName = strdup(move);\r
-      SetUserLogo();\r
+      SetUserLogo(); DisplayLogos();\r
       SetGameInfo();\r
       if(gameMode == MachinePlaysWhite || gameMode == MachinePlaysBlack) {\r
        snprintf(move, MSG_SIZ, "%s vs. %s", gameInfo.white, gameInfo.black);\r