WindowPlacement wpGameList;
WindowPlacement wpTags;
+extern Widget shells[];
+extern Boolean shellUp[];
+
#define SOLID 0
#define OUTLINE 1
Pixmap pieceBitmap[2][(int)BlackPawn];
}
extern Widget engineOutputShell;
-extern Widget tagsShell, editTagsShell;
+
void
GetActualPlacement(Widget wg, WindowPlacement *wp)
{
if(MoveHistoryIsUp()) GetActualPlacement(historyShell, &wpMoveHistory);
if(EvalGraphIsUp()) GetActualPlacement(evalGraphShell, &wpEvalGraph);
if(GameListIsUp()) GetActualPlacement(gameListShell, &wpGameList);
- if(commentShell) GetActualPlacement(commentShell, &wpComment);
- else GetActualPlacement(editShell, &wpComment);
- if(tagsShell) GetActualPlacement(tagsShell, &wpTags);
- else GetActualPlacement(editTagsShell, &wpTags);
+ if(shellUp[1]) GetActualPlacement(shells[1], &wpComment);
+ if(shellUp[2]) GetActualPlacement(shells[2], &wpTags);
}
void
Cardinal *num_params;
{
String whichMenu; int menuNr;
+ shiftKey = strcmp(params[0], "menuW"); // used to indicate black
if (event->type == ButtonRelease)
menuNr = RightClick(Release, event->xbutton.x, event->xbutton.y, &pmFromX, &pmFromY);
else if (event->type == ButtonPress)
void AnimateUserMove (Widget w, XEvent * event,
String * params, Cardinal * nParams)
{
+ extern ChessSquare promoSweep;
+ if(promoSweep != EmptySquare && appData.sweepSelect) PromoScroll(event->xmotion.x, event->xmotion.y); else
DragPieceMove(event->xmotion.x, event->xmotion.y);
}