From 33b7a136d720760819e42f589dcf6262a6dd4a21 Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Fri, 3 Dec 2010 22:44:02 +0100 Subject: [PATCH] Fix Edit Game/Position checkmarking in WinBoard Because the entries in Edit and Mode menu were pure duplicats, the entries in the wrong menu (Edit) were checkmarked while active. By defining different IDs for those in the Edit menu, those in the Mode menu are checkmarked again. --- winboard/resource.h | 2 ++ winboard/winboard.c | 2 ++ winboard/winboard.rc | 4 ++-- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/winboard/resource.h b/winboard/resource.h index e063e42..33b3875 100644 --- a/winboard/resource.h +++ b/winboard/resource.h @@ -31,6 +31,8 @@ #define IDM_TimeControl 131 #define IDM_LoadOptions 132 #define IDM_SaveOptions 133 +#define IDM_EditGame2 134 +#define IDM_EditPosition2 135 #define IDM_CommPort 147 #define IDM_EditComment 148 #define IDM_LoadNextGame 149 diff --git a/winboard/winboard.c b/winboard/winboard.c index 24fa20e..ad257f9 100644 --- a/winboard/winboard.c +++ b/winboard/winboard.c @@ -4904,11 +4904,13 @@ WndProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam) break; case IDM_EditGame: + case IDM_EditGame2: EditGameEvent(); SAY("edit game"); break; case IDM_EditPosition: + case IDM_EditPosition2: EditPositionEvent(); SAY("enter a FEN string or setup a position on the board using the control R pop up menu"); break; diff --git a/winboard/winboard.rc b/winboard/winboard.rc index ca8624f..5bda4ec 100644 --- a/winboard/winboard.rc +++ b/winboard/winboard.rc @@ -1131,8 +1131,8 @@ BEGIN MENUITEM "P&aste Position From Clipboard\tCtrl+Shift+V", IDM_PasteAny MENUITEM SEPARATOR - MENUITEM "&Edit Game\tCtrl+E", IDM_EditGame - MENUITEM "E&dit Position\tCtrl+Shift+E",IDM_EditPosition + MENUITEM "&Edit Game\tCtrl+E", IDM_EditGame2 + MENUITEM "E&dit Position\tCtrl+Shift+E",IDM_EditPosition2 MENUITEM SEPARATOR MENUITEM "Edit Ta&gs...", IDM_EditTags MENUITEM "Edit &Comment...", IDM_EditComment -- 1.7.0.4