Mercurial > hg > fxanalyse
diff FXAnalyse.c @ 198:5cac684eb12e
Fix manual beatnote sign setting
author | Daniele Nicolodi <daniele.nicolodi@obspm.fr> |
---|---|
date | Mon, 31 Mar 2014 17:03:37 +0200 |
parents | 87dae6d62a61 |
children | 111610d871af |
line wrap: on
line diff
--- a/FXAnalyse.c Mon Mar 31 17:03:37 2014 +0200 +++ b/FXAnalyse.c Mon Mar 31 17:03:37 2014 +0200 @@ -1999,13 +1999,23 @@ return 0; } -int CVICALLBACK CB_Sign3 (int panel, int control, int event, +int CVICALLBACK CB_BeatnoteSign (int panel, int control, int event, void *callbackData, int eventData1, int eventData2) { switch (event) { case EVENT_COMMIT: - GetCtrlVal(panel, control, &Sign3); + switch(control) { + case PANEL_SIGN1: + GetCtrlVal(panel, control, &Sign1); + break; + case PANEL_SIGN2: + GetCtrlVal(panel, control, &Sign2); + break; + case PANEL_SIGN3: + GetCtrlVal(panel, control, &Sign3); + break; + } break; } return 0;