refactor: no state_config pointer
Clang Build CI / run-no-video (push) Successful in 1m2s
Clang Lint CI / lint-no-video (push) Successful in 1m1s
Clang Build CI / run-video (push) Successful in 1m2s
Clang Build CI / build-release (push) Successful in 1m50s
Clang Lint CI / lint-video (push) Successful in 1m47s
Clang Build CI / run-no-video (push) Successful in 1m2s
Clang Lint CI / lint-no-video (push) Successful in 1m1s
Clang Build CI / run-video (push) Successful in 1m2s
Clang Build CI / build-release (push) Successful in 1m50s
Clang Lint CI / lint-video (push) Successful in 1m47s
This commit is contained in:
+4
-4
@@ -62,7 +62,7 @@ static void compute_fps() {
|
||||
static void init_context() {
|
||||
context.stop = false;
|
||||
|
||||
state_init(&context, &project.state_config, init_params.demo,
|
||||
state_init(&context, project.state_config, init_params.demo,
|
||||
init_params.auto_random, init_params.auto_random_cycle,
|
||||
init_params.base_tempo, init_params.load_state);
|
||||
|
||||
@@ -181,12 +181,12 @@ static void key_callback(Window *window, int key,
|
||||
log_info("[ESC] Closing...");
|
||||
window_close(window);
|
||||
} else if (event > 0) {
|
||||
state_key_event(&context, &project.state_config, event, &midi);
|
||||
state_key_event(&context, project.state_config, event, &midi);
|
||||
}
|
||||
}
|
||||
|
||||
static void midi_callback(unsigned char code, unsigned char value) {
|
||||
state_midi_event(&context, &project.state_config, &midi, code, value,
|
||||
state_midi_event(&context, project.state_config, &midi, code, value,
|
||||
init_params.trace_midi);
|
||||
}
|
||||
|
||||
@@ -336,7 +336,7 @@ static void shutdown() {
|
||||
context.stop = true;
|
||||
|
||||
if (init_params.save_state) {
|
||||
state_save(&context, &project.state_config);
|
||||
state_save(&context, project.state_config);
|
||||
}
|
||||
|
||||
shaders_free(&program);
|
||||
|
||||
Reference in New Issue
Block a user