X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=winboard%2Fwinboard.c;h=7678dae4160e2ecda21b7d5c26dbdabdabd7370a;hb=5808ac6ec32f1355eead1c78bf71927b1c91d738;hp=9782495fb9ffe9da206fc1a0008b4befa76b1d4c;hpb=845265f0dd9b60782b50d05779d69dbef6dcc294;p=xboard.git diff --git a/winboard/winboard.c b/winboard/winboard.c index 9782495..7678dae 100644 --- a/winboard/winboard.c +++ b/winboard/winboard.c @@ -347,7 +347,7 @@ static char *commentText; static int commentIndex; static Boolean editComment = FALSE; HWND commentDialog = NULL; -BOOLEAN commentDialogUp = FALSE; +int commentUp = FALSE; static int commentX, commentY, commentH, commentW; static char *analysisTitle; @@ -435,7 +435,7 @@ BOOLEAN evalGraphDialogUp = FALSE; WindowPlacement wpEvalGraph; HWND engineOutputDialog = NULL; -BOOLEAN engineOutputDialogUp = FALSE; +int engineOutputDialogUp = FALSE; WindowPlacement wpEngineOutput; WindowPlacement wpGameList; @@ -5780,7 +5780,7 @@ WndProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam) break; case IDM_EditComment: - if (commentDialogUp && editComment) { + if (commentUp && editComment) { CommentPopDown(); } else { EditCommentEvent(); @@ -7136,14 +7136,14 @@ EitherCommentPopUp(int index, char *title, char *str, BOOLEAN edit) if (commentDialog) { SendMessage(commentDialog, WM_INITDIALOG, 0, 0); - if (!commentDialogUp) ShowWindow(commentDialog, SW_SHOW); + if (!commentUp) ShowWindow(commentDialog, SW_SHOW); } else { lpProc = MakeProcInstance((FARPROC)CommentDialog, hInst); CreateDialog(hInst, MAKEINTRESOURCE(DLG_EditComment), hwndMain, (DLGPROC)lpProc); FreeProcInstance(lpProc); } - commentDialogUp = TRUE; + commentUp = TRUE; } @@ -9436,7 +9436,7 @@ CommentPopDown(void) if (commentDialog) { ShowWindow(commentDialog, SW_HIDE); } - commentDialogUp = FALSE; + commentUp = FALSE; } VOID