aboutsummaryrefslogtreecommitdiff
path: root/src/graph/graph.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/graph/graph.cpp')
-rw-r--r--src/graph/graph.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/graph/graph.cpp b/src/graph/graph.cpp
index 70bec35b..eef95c8c 100644
--- a/src/graph/graph.cpp
+++ b/src/graph/graph.cpp
@@ -216,4 +216,11 @@ namespace cru::graph
d2d1_factory_->ReloadSystemMetrics()
);
}
+
+ Microsoft::WRL::ComPtr<ID2D1SolidColorBrush> CreateSolidColorBrush(const D2D1_COLOR_F& color)
+ {
+ Microsoft::WRL::ComPtr<ID2D1SolidColorBrush> brush;
+ ThrowIfFailed(GraphManager::GetInstance()->GetD2D1DeviceContext()->CreateSolidColorBrush(color, &brush));
+ return brush;
+ }
}