ref: 89235b596c5191df516b95d2acbe1aa3b9f79c09
parent: 367d17bd26b096c0e918714b08ef82e88ade1f96
author: cancel <cancel@cancel.fm>
date: Fri Jan 3 12:34:52 EST 2020
Cleanup
--- a/tui_main.c
+++ b/tui_main.c
@@ -855,8 +855,7 @@
susnote_list_init(&a->susnote_list);
ged_cursor_init(&a->ged_cursor);
a->tick_num = 0;
- a->ruler_spacing_y = 8;
- a->ruler_spacing_x = 8;
+ a->ruler_spacing_y = a->ruler_spacing_x = 8;
a->input_mode = Ged_input_mode_normal;
a->bpm = init_bpm;
a->clock = 0;
@@ -867,15 +866,11 @@
a->midi_mode = NULL;
a->activity_counter = 0;
a->random_seed = init_seed;
- a->drag_start_y = 0;
- a->drag_start_x = 0;
- a->win_h = 0;
- a->win_w = 0;
- a->softmargin_y = 0;
- a->softmargin_x = 0;
+ a->drag_start_y = a->drag_start_x = 0;
+ a->win_h = a->win_w = 0;
+ a->softmargin_y = a->softmargin_x = 0;
a->grid_h = 0;
- a->grid_scroll_y = 0;
- a->grid_scroll_x = 0;
+ a->grid_scroll_y = a->grid_scroll_x = 0;
a->needs_remarking = true;
a->is_draw_dirty = false;
a->is_playing = true;