]> git.sesse.net Git - casparcg/commitdiff
* Made diag window draw graphs exactly within the dotted lines instead of a little...
authorHelge Norberg <helge.norberg@svt.se>
Thu, 5 Nov 2015 14:08:59 +0000 (15:08 +0100)
committerHelge Norberg <helge.norberg@svt.se>
Thu, 5 Nov 2015 14:08:59 +0000 (15:08 +0100)
core/diagnostics/osd_graph.cpp

index c4a8c518a7ce3686e03e86a0d86fbd264782cfa0..f9b49c2731282ad92cdc210d52f0b507291b41da 100644 (file)
@@ -336,7 +336,7 @@ public:
 
                auto color = get_sfml_color(color_);
                color.a = 255 * 0.8;
-               line_data_.push_back(sf::Vertex(sf::Vector2f(get_insertion_xcoord(), std::max(0.05, std::min(0.95, (1.0f - tick_data_) * 0.8 + 0.1f))), color));
+               line_data_.push_back(sf::Vertex(sf::Vector2f(get_insertion_xcoord(), std::max(0.1f, std::min(0.9f, (1.0f - tick_data_) * 0.8f + 0.1f))), color));
 
                if (tick_tag_)
                {