From fc06397ccc96b673537bd29b79f62f53620c72d8 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Sun, 30 Sep 2018 16:22:57 +0200 Subject: [PATCH] configurable -btwidth via commandline --- binary-tiling.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/binary-tiling.cpp b/binary-tiling.cpp index 3d17cd80..602192b5 100644 --- a/binary-tiling.cpp +++ b/binary-tiling.cpp @@ -203,5 +203,16 @@ namespace binary { } return gm * where; } + +auto bt_config = addHook(hooks_args, 0, [] () { + using namespace arg; + if(argis("-btwidth")) { + shift(); vid.binary_width = argf(); + need_reset_geometry = true; + return 0; + } + return 1; + }); + } }