Browse Source

Cleanup

master
cancel 5 years ago
parent
commit
89235b596c
  1. 15
      tui_main.c

15
tui_main.c

@ -855,8 +855,7 @@ void ged_init(Ged* a, Usz undo_limit, Usz init_bpm, Usz init_seed) {
susnote_list_init(&a->susnote_list); susnote_list_init(&a->susnote_list);
ged_cursor_init(&a->ged_cursor); ged_cursor_init(&a->ged_cursor);
a->tick_num = 0; a->tick_num = 0;
a->ruler_spacing_y = 8; a->ruler_spacing_y = a->ruler_spacing_x = 8;
a->ruler_spacing_x = 8;
a->input_mode = Ged_input_mode_normal; a->input_mode = Ged_input_mode_normal;
a->bpm = init_bpm; a->bpm = init_bpm;
a->clock = 0; a->clock = 0;
@ -867,15 +866,11 @@ void ged_init(Ged* a, Usz undo_limit, Usz init_bpm, Usz init_seed) {
a->midi_mode = NULL; a->midi_mode = NULL;
a->activity_counter = 0; a->activity_counter = 0;
a->random_seed = init_seed; a->random_seed = init_seed;
a->drag_start_y = 0; a->drag_start_y = a->drag_start_x = 0;
a->drag_start_x = 0; a->win_h = a->win_w = 0;
a->win_h = 0; a->softmargin_y = a->softmargin_x = 0;
a->win_w = 0;
a->softmargin_y = 0;
a->softmargin_x = 0;
a->grid_h = 0; a->grid_h = 0;
a->grid_scroll_y = 0; a->grid_scroll_y = a->grid_scroll_x = 0;
a->grid_scroll_x = 0;
a->needs_remarking = true; a->needs_remarking = true;
a->is_draw_dirty = false; a->is_draw_dirty = false;
a->is_playing = true; a->is_playing = true;

Loading…
Cancel
Save