From 3ee26c011464ede33114f0d166cca0e8fb1f86b2 Mon Sep 17 00:00:00 2001 From: Eric Mullins Date: Sat, 10 Oct 2009 16:16:45 -0600 Subject: [PATCH] added code to handle initial width update --- backend.c | 1 + frontend.h | 1 + winboard/winboard.c | 5 +++++ xboard.c | 5 +++++ 4 files changed, 12 insertions(+), 0 deletions(-) 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; -- 1.7.0.4