]> git.sesse.net Git - casparcg/blobdiff - common/diagnostics/graph.cpp
git-svn-id: https://casparcg.svn.sourceforge.net/svnroot/casparcg/server/branches...
[casparcg] / common / diagnostics / graph.cpp
index f7d66843af532303b900a1d4cd3d1577504d9a38..5378f515642683b7f30d24d2ef7dcb515cbc18f7 100644 (file)
@@ -75,9 +75,9 @@ public:
 private:\r
        context() : executor_(L"diagnostics")\r
        {\r
-               executor_.start();\r
                executor_.begin_invoke([this]\r
-               {\r
+               {                       \r
+                       SetThreadPriority(GetCurrentThread(), BELOW_NORMAL_PRIORITY_CLASS);\r
                        window_.Create(sf::VideoMode(600, 1000), "CasparCG Diagnostics");\r
                        window_.SetPosition(0, 0);\r
                        window_.SetActive();\r
@@ -168,7 +168,7 @@ class line : public drawable
        boost::optional<diagnostics::guide> guide_;\r
        boost::circular_buffer<std::pair<double, bool>> line_data_;\r
 \r
-       std::vector<float>              tick_data_;\r
+       std::vector<double>             tick_data_;\r
        bool                                    tick_tag_;\r
        color c_;\r
 public:\r
@@ -232,7 +232,7 @@ public:
                        target.Draw(*guide_);\r
                \r
                glBegin(GL_LINE_STRIP);\r
-               glColor4f(c_.red, c_.green, c_.blue, 0.7f);             \r
+               glColor4f(c_.red, c_.green, c_.blue, 0.8f);             \r
                for(size_t n = 0; n < line_data_.size(); ++n)           \r
                        if(line_data_[n].first > -0.5)\r
                                glVertex3d(x+n*dx, std::max(0.05, std::min(0.95, (1.0f-line_data_[n].first)*0.8 + 0.1f)), 0.0);         \r