diff --git a/Makefile b/Makefile index 1de54bb..ca0066d 100644 --- a/Makefile +++ b/Makefile @@ -135,3 +135,17 @@ $(TARGET): $(OBJECTS) clean: -rm -f *.o ./src/*.o ./src/*.o.tmp ./lib/libBigWig/*.o -rm -f $(TARGET) + -rm -rf libgw + + +SHARED_TARGET = libgw/libgw.so +ifeq ($(PLATFORM),"Darwin") + SHARED_TARGET = libgw/libgw.dylib +endif + +shared: CXXFLAGS += -fPIC +shared: $(OBJECTS) + -mkdir -p libgw/include + -cp src/*.h libgw/include + -cp include/*.h libgw/include + $(CXX) $(OBJECTS) $(LDFLAGS) $(LDLIBS) -shared -o $(SHARED_TARGET) diff --git a/src/plot_controls.cpp b/src/plot_controls.cpp index 39976e4..32780a1 100644 --- a/src/plot_controls.cpp +++ b/src/plot_controls.cpp @@ -1816,6 +1816,7 @@ namespace Manager { tracks.push_back(HGW::GwTrack()); try { tracks.back().open(pth, true); + tracks.back().variant_distance = &opts.variant_distance; std::cout << termcolor::magenta << "\nTrack " << termcolor::reset << pth << "\n"; } catch (...) { tracks.pop_back(); diff --git a/src/plot_manager.cpp b/src/plot_manager.cpp index 8d3ac8c..e63434f 100644 --- a/src/plot_manager.cpp +++ b/src/plot_manager.cpp @@ -878,7 +878,7 @@ namespace Manager { SkPaint cog_paint = opts.theme.lcBright; cog_paint.setAntiAlias(true); - cog_paint.setStrokeWidth(6); + cog_paint.setStrokeWidth(3 * monitorScale); cog_paint.setStyle(SkPaint::kStrokeAndFill_Style); canvas->drawCircle(15 * monitorScale, half_h - 12.5 * monitorScale, 5 * monitorScale, cog_paint);