From: H.G. Muller Date: Thu, 12 Apr 2012 07:47:43 +0000 (+0200) Subject: Fix 3 forgotten symbolic widget references X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=77a587355e8fb421964949184eea7e51d61f5d61;p=xboard.git Fix 3 forgotten symbolic widget references --- diff --git a/dialogs.c b/dialogs.c index 6c8e38f..586e628 100644 --- a/dialogs.c +++ b/dialogs.c @@ -1838,15 +1838,15 @@ static void PMSelect (int n) { // user callback for board context menus if (pmFromX < 0 || pmFromY < 0) return; - if(n == 25) DropMenuEvent(dropMenuTranslation[values[n]], pmFromX, pmFromY); - else EditPositionMenuEvent(pieceMenuTranslation[n-23][values[n]], pmFromX, pmFromY); + if(n == W_DROP) DropMenuEvent(dropMenuTranslation[values[n]], pmFromX, pmFromY); + else EditPositionMenuEvent(pieceMenuTranslation[n - W_MENUW][values[n]], pmFromX, pmFromY); } int CCB (int n) { shiftKey = (ShiftKeys() & 3) != 0; - ClockClick(n == 12); + ClockClick(n == W_BLACK); } Option mainOptions[] = { // description of main window in terms of generic dialog creator