From: Eric Mullins Date: Sat, 10 Oct 2009 22:16:45 +0000 (-0600) Subject: added code to handle initial width update X-Git-Tag: v4.4.1.20091019~35 X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=3ee26c011464ede33114f0d166cca0e8fb1f86b2;p=xboard.git added code to handle initial width update --- diff --git a/backend.c b/backend.c index 39e48a7..2965507 100644 --- a/backend.c +++ b/backend.c @@ -2225,6 +2225,7 @@ read_from_ics(isr, closure, data, count, error) strcat(str, "$iset nohighlight 1\n"); #endif strcat(str, "$iset lock 1\n$style 12\n"); + NotifyFrontendLogin(); } SendToICS(str); intfSet = TRUE; diff --git a/frontend.h b/frontend.h index c89673f..b5b38e3 100644 --- a/frontend.h +++ b/frontend.h @@ -84,6 +84,7 @@ void AskQuestion P((String title, String question, String replyPrefix, void DisplayIcsInteractionTitle P((String title)); void DrawPosition P((int fullRedraw, Board board)); void ResetFrontEnd P((void)); +void NotifyFrontendLogin P((void)); void CommentPopUp P((String title, String comment)); void CommentPopDown P((void)); void EditCommentPopUp P((int index, String title, String text)); diff --git a/winboard/winboard.c b/winboard/winboard.c index e6fcb8b..af08df3 100644 --- a/winboard/winboard.c +++ b/winboard/winboard.c @@ -9534,6 +9534,11 @@ DrawPosition(int fullRedraw, Board board) HDCDrawPosition(NULL, (BOOLEAN) fullRedraw, board); } +void NotifyFrontendLogin() +{ + if (hwndConsole) + UpdateICSWidth(GetDlgItem(hwndConsole, OPT_ConsoleText)); +} VOID ResetFrontEnd() diff --git a/xboard.c b/xboard.c index 3fbb9c4..b0cd524 100644 --- a/xboard.c +++ b/xboard.c @@ -3273,6 +3273,11 @@ ResetFrontEnd() return; } +void NotifyFrontendLogin() +{ + // placeholder +} + typedef struct { char *name; Boolean value;