else EditPositionMenuEvent(pieceMenuTranslation[n - W_MENUW][values[n]], pmFromX, pmFromY);
}
-int
+static void
CCB (int n)
{
shiftKey = (ShiftKeys() & 3) != 0;
if(but3) MovePV(x, y, lineGap + BOARD_HEIGHT * (squareSize + lineGap));
return NULL;
}
+ if(n != 10 && PopDown(PromoDlg)) fromX = fromY = -1; // user starts fiddling with board when promotion dialog is up
shiftKey = ShiftKeys();
controlKey = (shiftKey & 0xC) != 0;
shiftKey = (shiftKey & 3) != 0;
}
}
-FILE *
+void
Browse (DialogClass dlg, char *label, char *proposed, char *ext, Boolean pathFlag, char *mode, char **name, FILE **fp)
{
int j=0;
browseOptions[6].textValue = (char*) (pathFlag ? NULL : &FileSelProc); // disable file listbox during path browsing
ListDir(pathFlag);
currentCps = NULL;
- if(GenericPopUp(browseOptions, label, BrowserDlg, dlg, MODAL, 0)) {
- }
+ GenericPopUp(browseOptions, label, BrowserDlg, dlg, MODAL, 0);
SetWidgetLabel(&browseOptions[9], FileTypes[j]);
}