fixed #143 regression

This commit is contained in:
itsmattkc
2019-01-18 15:09:17 +11:00
parent b2ff4db398
commit 2ed9d6ba2e
3 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -20,7 +20,7 @@
// C callbacks
extern "C" {
// Main host callback
VstIntPtr VSTCALLBACK hostCallback(AEffect *effect, int opcode, int, long long, void *, float) {
VstIntPtr VSTCALLBACK hostCallback(AEffect* effect, VstInt32 opcode, VstInt32 index, VstIntPtr value, void* ptr, float opt) {
switch(opcode) {
case audioMasterVersion:
return 2400;
+2 -4
View File
@@ -53,9 +53,7 @@ public:
ResizableScrollBar* horizontalScrollBar;
QScrollBar* verticalScrollBar;
QMutex effects_loaded;
QMutex effects_loaded;
public slots:
void update_keyframes();
private slots:
@@ -73,7 +71,7 @@ private:
void show_effect_menu(int type, int subtype);
void load_effects();
void load_keyframes();
void open_effect(QVBoxLayout* hlayout, Effect* e);
void open_effect(QVBoxLayout* hlayout, Effect* e);
void setup_ui();
+4 -2
View File
@@ -580,7 +580,8 @@ void Effect::move_up() {
command->from = get_index_in_clip();
command->to = command->from - 1;
undo_stack.push(command);
update_ui(true);
panel_effect_controls->reload_clips();
panel_sequence_viewer->viewer_widget->frame_update();
}
void Effect::move_down() {
@@ -589,7 +590,8 @@ void Effect::move_down() {
command->from = get_index_in_clip();
command->to = command->from + 1;
undo_stack.push(command);
update_ui(true);
panel_effect_controls->reload_clips();
panel_sequence_viewer->viewer_widget->frame_update();
}
int Effect::get_index_in_clip() {