# HG changeset patch # User Daniele Nicolodi # Date 1396278217 -7200 # Node ID 5cac684eb12e8c16404be515c7c0ffd663ce6ffb # Parent 79db2c87d1b0665f2df75b1e2809fcc48c5c887b Fix manual beatnote sign setting diff -r 79db2c87d1b0 -r 5cac684eb12e FXAnalyse.c --- 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;