]> git.sesse.net Git - casparcg/commitdiff
Fixed bug in osd_graph where tags where not moved along the graph, but stuck on the...
authorHelge Norberg <helge.norberg@svt.se>
Fri, 21 Aug 2015 07:49:57 +0000 (09:49 +0200)
committerHelge Norberg <helge.norberg@svt.se>
Fri, 21 Aug 2015 07:49:57 +0000 (09:49 +0200)
core/diagnostics/osd_graph.cpp

index 8d3d35f2fb59f849da611fc921f852fa5edbb17c..51766c215380922ccb6b16d792ab3c86fe0b1b92 100644 (file)
@@ -325,6 +325,15 @@ public:
                for (auto& vertex : line_data_)
                        vertex.position.x -= x_delta_;
 
+               for (auto& tag : line_tags_)
+               {
+                       if (tag)
+                       {
+                               (*tag)[0].position.x -= x_delta_;
+                               (*tag)[1].position.x -= x_delta_;
+                       }
+               }
+
                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));