shithub: orca

Download patch

ref: a26788ea9532ec6166f0e6eaea57c0068c7d28b1
parent: 721e9b2311e75fcdff329b6e1b026509ce7c0986
author: cancel <cancel@cancel.fm>
date: Wed Jan 1 21:56:27 EST 2020

Cleanup

--- a/tui_main.c
+++ b/tui_main.c
@@ -804,15 +804,12 @@
   char const* filename;
   Oosc_dev* oosc_dev;
   Midi_mode const* midi_mode;
-  Usz random_seed;
-  Usz drag_start_y;
-  Usz drag_start_x;
   Usz activity_counter;
-  int win_h;
-  int win_w;
+  Usz random_seed;
+  Usz drag_start_y, drag_start_x;
+  int win_h, win_w;
   int grid_h;
-  int grid_scroll_y; // not sure if i like this being int
-  int grid_scroll_x;
+  int grid_scroll_y, grid_scroll_x; // not sure if i like this being int
   bool needs_remarking : 1;
   bool is_draw_dirty : 1;
   bool is_playing : 1;
@@ -843,10 +840,10 @@
   a->filename = NULL;
   a->oosc_dev = NULL;
   a->midi_mode = NULL;
+  a->activity_counter = 0;
   a->random_seed = init_seed;
   a->drag_start_y = 0;
   a->drag_start_x = 0;
-  a->activity_counter = 0;
   a->win_h = 0;
   a->win_w = 0;
   a->grid_h = 0;