From c02bdbcf9ef286410e776f2c1d73c3b2fa237ada Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Mon, 3 Mar 2014 20:08:01 -0800 Subject: [PATCH] Adjust the appears of the vector clip control handles Make them significantly smaller to cover less of the video and fiddle with the appearance to hopefully make them still visible enough. --- aegisub/src/visual_tool_vector_clip.cpp | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/aegisub/src/visual_tool_vector_clip.cpp b/aegisub/src/visual_tool_vector_clip.cpp index 1158152f1..260a82d0d 100644 --- a/aegisub/src/visual_tool_vector_clip.cpp +++ b/aegisub/src/visual_tool_vector_clip.cpp @@ -141,7 +141,24 @@ void VisualToolVectorClip::Draw() { } } - DrawAllFeatures(); + // Draw features + for (auto& feature : features) { + int color = 3; + if (&feature == active_feature) + color = 1; + else if (sel_features.count(&feature)) + color = 2; + gl.SetFillColour(colour[color], .6f); + + if (feature.type == DRAG_SMALL_SQUARE) { + gl.SetLineColour(colour[3], .5f, 1); + gl.DrawRectangle(feature.pos - 3, feature.pos + 3); + } + else { + gl.SetLineColour(colour[color], .5f, 1); + gl.DrawCircle(feature.pos, 2.f); + } + } // Draw preview of inserted line if (mode == 1 || mode == 2) {