diff --git a/CMakeLists.txt b/CMakeLists.txt index f479e70..030095a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,5 +1,5 @@ cmake_minimum_required(VERSION 3.25) -project(graphs VERSION 0.0.39) +project(graphs VERSION 0.0.40) option(ENABLE_ADDRSAN "Enable the address sanitizer" OFF) option(ENABLE_UBSAN "Enable the ub sanitizer" OFF) diff --git a/lib/BLT-With-Graphics-Template b/lib/BLT-With-Graphics-Template index 2c29dba..af14354 160000 --- a/lib/BLT-With-Graphics-Template +++ b/lib/BLT-With-Graphics-Template @@ -1 +1 @@ -Subproject commit 2c29dba90fc8de8fe8cbacd035c50d13a4f5aa70 +Subproject commit af143549cbbafa26ad10b89777093d55e5d82bde diff --git a/src/main.cpp b/src/main.cpp index 36c6a53..60fda94 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -238,11 +238,8 @@ class graph_t { auto n1 = nodes[edge.getFirst()]; auto n2 = nodes[edge.getSecond()]; - auto draw_info = blt::gfx::render_info_t::make_info(edge.getColor()); - auto outline_info = blt::gfx::render_info_t::make_info(edge.getOutlineColor()); - blt::gfx::line2d_t line{n1.getRenderObj().pos, n2.getRenderObj().pos, edge.getThickness() * edge.getOutlineScale()}; + auto draw_info = blt::gfx::render_info_t::make_info(edge.getColor(), edge.getOutlineColor(), edge.getOutlineScale()); renderer_2d.drawLine(draw_info, 5.0f, n1.getRenderObj().pos, n2.getRenderObj().pos, edge.getThickness()); - renderer_2d.drawLineInternal(outline_info, line, 2.0f); } } }