ref: d6ffb115fe1df21fe6dafc0d9582029b4d2203be
parent: 243568958f713e1968e5fc2d518f15c3e85ca087
author: Nicola Pisanti <nicola@npisanti.com>
date: Sun Dec 16 08:41:29 EST 2018
fixes for ncurses mouse versions
--- a/tui_main.c
+++ b/tui_main.c
@@ -1202,7 +1202,9 @@
a->is_draw_dirty = true;
}
}
- } else {
+ }
+#if NCURSES_MOUSE_VERSION != 1
+else {
if (mouse_bstate & BUTTON4_PRESSED) {
a->grid_scroll_y -= 1;
a->is_draw_dirty = true;
@@ -1211,6 +1213,7 @@
a->is_draw_dirty = true;
}
}
+#endif
}
void ged_adjust_rulers_relative(Ged* a, Isz delta_y, Isz delta_x) {